I am trying to animate a UIView frame change, where both the start and the size change. The animation does not look smooth and has an invigorating effect. I am using the following code for this
[UIView animateWithDuration:0.5 animations:^{ self.view.frame = newFrame; }];
It seems that the size first changes very quickly, and then the origin changes with the specified duration of the animation, which ultimately leads to an elastic effect. How to make it smooth?
ios animation uiview frame
Soumya das
source share