Using UIPopoverBackgroundView class
问题 Apple is missing documentation on how to use UIPopoverBackgroundView class introduced in iOS5. Anyone have an example? I have tried to subclass it, but my XCode 4.2 on Lion is missing UIPopoverBackgroundView.h Edit: Unsurprisingly, it should have been imported as #import <UIKit/UIPopoverBackgroundView.h> 回答1: To add to the other, link-only answers, here is how this is done. Create a new subclass of UIPopoverBackgroundView Declare the following in your interface: +(UIEdgeInsets