iOS CABasicAnimation fillMode breaks hitTest. Why?
I use CABasicAnimation to change transform value back to Identity
If I use transformAnimation.fillMode = kCAFillModeForwards;(I have to use)
after the UIView transform becomes Identity (animation finishes), UIView
becomes untouchable outside a small diameter from the center. (it doesn't
receive touch events near to the border).
If I set fillMode to something else than kCAFillModeForwards, UIView stays
clickable at every point but it breaks the animation as I want it to stay
at the identity matrix.
It is strange that It only allows me to click to the points near to the
center of the view and prevents me from touching any other parts of the
view.
What can be the reason for this?
update: If I use [UIView beginAnimations:@"abc" context:nil]; instead of
CABasicAnimation, this strange problem does not occur.
No comments:
Post a Comment