I need to copy a UIEvent
in order to forward it to a UIView
(UIWebView) at a later time. Is this possible? And if so, how can I achieve it?
example subclass of main UIWindow
UIEvent *startEvent;
- (void)sendEvent:(UIEvent *)event {
NSSet *touches = [event allTouches];
UITouch *touch = touches.anyObject;
if(touch.phase == UITouchPhaseBegan) {
startEvent = event; //will only point startEvent to event so startEvent changes each time event changes, but I need to keep the original event when UITouchPhaseBegan.
//startEvent = [event copy]; //i tried that, but unfortunately it's not working
}
Has anyone done this before and found a solution that will not cause the app to be rejected by Apple? ....