开发者

How would you create a static version of the UIPopoverView?

开发者 https://www.devze.com 2023-01-10 07:23 出处:网络
I tried using a popover in my interface, but all the convenience features of the UIPopoverController made it impossible.

I tried using a popover in my interface, but all the convenience features of the UIPopoverController made it impossible.

My goal is to use the popover's chrome, but none of the associated events or actions. I need it to stay displayed onscreen (no dismissal) and not be modal.

So now I'm considering building my own开发者_开发百科 view using images. My question: is there a better way to accomplish this (a view with image borders)?


If you want to stay your UIPopover onscreen and allow the user to interact with other views onscreen while to popover is show, consider using the passthroughViews property on UIPopoverController

The UIPopoverController Class Reference:

When a popover is active, interactions with other views are normally disabled until the popover is dismissed. Assigning an array of views to this property allows taps outside of the popover to be handled by the corresponding views.

You should be able to achieve the effect you want by just passing an array containing only the "background" viewcontroller's view.

0

精彩评论

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