I have a tableview and a normal view (let’s say view 2) inside a normal view. All made in Interface builder. View 2 is above the tableview and needs to appear animated from above at the loading of the view. When pressing a button, the view disappears again. How can i do this?
thanks
You will have to animate this in a custom animation block. It should be fairly simple..
Set your view’s frame so that it is above the screen and not visible:
In the animation block just change your view’s frame in the animation block:
To dismiss it/ make it disappear use same animation with the previous frame:
But before that consider whether you must bring it in from top, cause if bringing it in from bottom as a modal view meets your requirements, you can very easily use UIViewController’s method:
Good Luck.