window addSubview:mainView;
mainView addSubview:hitView;
mainView = UIView;
hitView = UIImageView
I had try adding UIView animation and CABasicAnimation to (UIImageView)hitView,
both of that working fine at animation, but when I add the touchesBegan method the detect touch event in (UIView)mainView,
UITouch *touch = [event allTouches] anyObject;
NSLog(@"%@", touch view);
the NSLog will only display the (UIImageView) hitView when the animation stop, if the animation is still running, it will return the (UIView)mainView.
Anyone know how to solve this problem?
mainView addSubview:hitView;
mainView = UIView;
hitView = UIImageView
I had try adding UIView animation and CABasicAnimation to (UIImageView)hitView,
both of that working fine at animation, but when I add the touchesBegan method the detect touch event in (UIView)mainView,
UITouch *touch = [event allTouches] anyObject;
NSLog(@"%@", touch view);
the NSLog will only display the (UIImageView) hitView when the animation stop, if the animation is still running, it will return the (UIView)mainView.
Anyone know how to solve this problem?