Here is my relevant code:
UITouch *touch;
NSArray *touches = [NSArray arrayWithObject:touch];
//The statement below throw the LLVM compiler error
[self touchesMoved:[NSSet setWithArray:touches] withEvent:UIEventTypeTouches];
here is the declaration of touchesMoved:withEvent:
method:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
Seems like I need to explicitly convert UIEventTypeTouches
to UIEvent
, how to fix that?