Reputation: 1100
I am new in IOS development and i am trying to develop a slide down menu like that in "Paper" app its looks like a view sliding down and pull another view to locate it at its place in view . in other words a view that is swapped down and another view appear above it . I know this is confusing and I hope the attached images can describe what i want to ask i need an advice or a component to help me develop this menu Thanking in advance
the view before sliding the menu
here is the view while sliding
the view after sliding the menu
Upvotes: 2
Views: 545
Reputation: 11333
I suggest using UIPanGestureRecognizer
for this after positioning upper view at -Y axis and changing the Y coordinate of both views as user pans down the lower view. Try and revert back if you get stuck somewhere.
You can follow this tutorial for a quick kickstart: http://www.ioscreator.com/tutorials/dragging-views-with-gestures
Upvotes: 2