Custom UIPopoverController?

How to create UIPopOverControllerone that looks like this:

iPad UIPopoverController

Is this regular UIViewor some form UIPopOverController?

+5
source share
2 answers

In iOS 5, you can now subclass UIPopoverBackgroundViewand override popoverBackgroundViewClassyours UIPopoverController. In this way, you can achieve what you see in the figure. Without having to reinvent the wheel to deal with the user view and have the right position.

+5
source

As far as I can tell, this is just a custom UIView, with a background image, a layer that creates a shadow, and some children on it. This is actually not so difficult to do, so go ahead.

+1

All Articles