Question

I am working on iOS app, I need to implement the following functionality, enter image description here

User should drag the menu from bottom by swipe up and also it can close the menu by swipe down,

Is there any api or any class in iOS to do such functionality, I searched it but i did not get any of such api to do it easily. Please suggest me the solution, Thanks in advance.

Was it helpful?

Solution

check this out Code for PullableView

UIView subclass that implements pullable behaviour similar to the Notification Center in iOS 5.

how it looks - https://www.cocoacontrols.com/controls/pullableview

OTHER TIPS

if your subview is at (0, 470, 320, 80) and you want to move it to (0, 400, 320, 80); try this simple code

            [UIView beginAnimations:nil context:nil];
            [UIView setAnimationDuration:1.2];

            self.my_subview.frame=CGRectMake(0, 400, 320, 80);

            [UIView commitAnimations];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top