开发者

UIPopoverController: How to move it?

开发者 https://www.devze.com 2023-02-19 20:21 出处:网络
I want to move a UIPopoverController. The only way I found开发者_JAVA百科 was calling [popover presentPopoverFromRect...] with the new position in view.

I want to move a UIPopoverController. The only way I found开发者_JAVA百科 was calling [popover presentPopoverFromRect...] with the new position in view.

This actually moves it but doesnt goes exactly where I want, I am using UIPopoverArrowDirectionAny.

There is any other option?


Using [popover presentPopoverFromRect...] is the correct way to move a UIPopoverController as the Technical Q&A document http://developer.apple.com/library/ios/#qa/qa1694/_index.html. If you have an exactly position for your popover, I think you should have an exactly UIPopoverArrowDirection other than using UIPopoverArrowDirectionAny. This may effect to the position of popover.

0

精彩评论

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

关注公众号