Reputation: 811
i want to change the image of popover. it is having blue tint at the top so i want it to be of different color. how can i do it...
- (void)presentPopoverFromRect:(CGRect)rect inView:(UIView *)view permittedArrowDirections:(UIPopoverArrowDirection)arrowDirections animated:(BOOL)animated
can i do it with this method.. make my own view and place a image in that view.
i read in some posts that it is not possible to change color and also i didnt fine any instance method of UIPopOverController class to do this..
thanks in advance.
Upvotes: 3
Views: 1413
Reputation: 18487
Maybe I am misunderstanding the question but it seems like it is possible to designate custom UIPopoverView backgrounds: UIPopoverBackgroundView. Haven't got around to trying this myself.
The UIPopoverBackgroundView class provides the background appearance for a popover. This class is abstract and must be subclassed before it can be used. The implementation of your subclass is responsible for providing the border decoration and arrow for the popover. Subclasses must also override all declared properties and methods to provide information about where to lay out the corresponding popover content and arrow.
Upvotes: 0
Reputation: 35933
You cannot customize a popover the way you want. The view you see is the popover's content. Popovers are always the way it is, black.
Upvotes: 1