UIButton scaled with core animation doesn't change hit area?

CAAnimation scales/etc. The view's underlying layer; the view itself occupies the same bounds. To modify the view itself, try using a UIView animation block and modifying the view's transform property.

Pitty that you cannot use CAAnimation for that. – Andy Jacobs Mar 22 at 15:13 CAAnimation is only meant for animating other Core Animation objects. It's by design.

– Jonathan Grynspan Mar 22 at 15:43.

Layers do not respond to touches directly (touches delegate is only the UIView's controller but not its underlaying CALayer). A possible solution to fix the hit area after animating the layer is to modify the view. Frame property (of the backing view) adapting its size and origin explicitly/"manually" to the final (expected) size of the animated layer.

The transformed view. Frame will allow again response to touches in a correct area without affecting the animated CALayer shape. In other words, the CALayer object and the frame property of the UIView seem untied.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions