我需要复制 aUIEvent
以便UIView
稍后将其转发到 (UIWebView)。这可能吗?如果是这样,我怎样才能实现它?
主 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
}
有没有人这样做过,并找到了不会导致应用程序被苹果拒绝的解决方案?……