开发者

How to present a modalView just above the control which makes it pop up?

开发者 https://www.devze.com 2023-03-02 09:39 出处:网络
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\".

How to present a modalView just above the control which makes it pop up?

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];
0

精彩评论

暂无评论...
验证码 换一张
取 消