Closed olivierto closed 8 years ago
You're using the animation property kPOPLayerScaleX
, which corresponds to the CALayer
key path transform.scale.x
, where 1.0
is the identity scale. However, in this case you're scaling it to a toValue
of self.navigationController.navigationBar.frame.size.width
, which is presumably quite large, perhaps 320
. So your view will end up 320 times as wide as it started out — probably more stretched out than you were hoping!
I'd try using kPOPLayerSize
if you just want to change the layer's bounds, or a lower toValue
if you really do want to change the scale. I'd also suggest messing around with the values without using Pop at all, to make sure the final result the animation is going towards is what you expect before setting it up with an animation.
sorry for late reply! ok! i misunderstood that i was manipulating the scale factor ! So i used the kPopLayerSize and all works great :) many thanks! Bye!
Hello there ! I'm facing a weird issue with an animation of a textfield inside a navigationItem. I'm moving the title in navbar and replace it with a search text Field. Here is my code :
Here is the result :
Any help would be much appreciated.