这是我的相关代码:
UITouch *touch;
NSArray *touches = [NSArray arrayWithObject:touch];
//The statement below throw the LLVM compiler error
[self touchesMoved:[NSSet setWithArray:touches] withEvent:UIEventTypeTouches];
这是touchesMoved:withEvent:
方法的声明:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
好像我需要显式转换UIEventTypeTouches
为UIEvent
,如何解决?