How can I cr开发者_开发百科eate a modal to pop up just above the button clicked?
As shown here above in the image, the pop up is just above the button "sleeping like a baby".
I want the modal to pop up in a similar way.
How can I do that?
you can do it by changing the frame of your popup view with animation as -
[popUpView setFrame:];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
[popUpView setFrame:];
[UIView commitAnimations];
精彩评论