devios1
devios1

Reputation: 38035

Non-interactive non-modal UIPopoverController?

Is there any way to have a UIPopoverController purely as a visual element that does not create a mode on top of the current view? I'd love to have a popover to display a message along with a contextual arrow, but not itself respond to events and not interfere with the interaction on the view behind it.

Upvotes: 1

Views: 339

Answers (2)

devios1
devios1

Reputation: 38035

The correct answer is to use the passthroughViews property of UIPopoverController to let touches pass through the popover view. It won't pass touches through the popover itself, but can be used to make them non-modal.

For a more customizable approach, something like https://github.com/werner77/WEPopover might be valuable.

Upvotes: 2

R3D3vil
R3D3vil

Reputation: 681

Try some of the open source API's like these:

http://code4app.net/ios/PopTip-View/4f6d89f86803faed41000000 OR https://github.com/ajerez/AJNotificationView (uses a banner instead of a popover for messages)

Upvotes: 0

Related Questions