I have a button on view1 and and I want to move it to view2 , but with animation from top. My view1 is on on the top half of the screen and view2 on the bottom half of the screen. So the superview changes as you can see. I have tried multiple approaches but the button just appears from the left or right but not from its origin. Any help is appreciated.
Share
I have accomplished this very result using the following code:
This code converts
tab‘s frame frommainWindowintocurrentView. This works perfectly, aside from this bug. If you don’t encounter that problem, or find out how to solve it I would really appreciate that.All you need to do from that point is apply your normal animation.