LLPopover Class Reference
Inherits from | NSObject |
Declared in | LLPopover.h LLPopover.m |
Overview
LLPopover is a component that mimic the iPad popover on the iPhone.
It works just like UIPopover: create an instance passing a content view controller and present it from a rect or UIBarButtonItem.
Tasks
-
contentVC
The view controller that will be visible inside the popover
property -
popoverLayout
The model object for the popover
property -
isVisible
If the popover is presented this will return YES
property -
– presentPopoverFromBarButtonItem:animated:
display the popover from a UIBarButtonItem
-
– presentPopoverFromRect:inView:animated:
display the popover from a given rect
-
– dismissPopoverAnimated:
dismiss the popover with a fade-out animation, if enabled
Properties
contentVC
The view controller that will be visible inside the popover
@property (nonatomic, retain) UIViewController *contentVC
Discussion
The view controller that will be visible inside the popover
Declared In
LLPopover.h
Instance Methods
dismissPopoverAnimated:
dismiss the popover with a fade-out animation, if enabled
- (void)dismissPopoverAnimated:(BOOL)animated
Parameters
- animated
set to YES to fade-out the popover
Discussion
dismiss the popover with a fade-out animation, if enabled
Declared In
LLPopover.h
presentPopoverFromBarButtonItem:animated:
display the popover from a UIBarButtonItem
- (void)presentPopoverFromBarButtonItem:(UIBarButtonItem *)barButtonItem animated:(BOOL)animated
Parameters
- barButtonItem
a UIBarButtonItem object to prenset the popover from
- animated
set to YES to fade-in the popover
Discussion
display the popover from a UIBarButtonItem
Declared In
LLPopover.h
presentPopoverFromRect:inView:animated:
display the popover from a given rect
- (void)presentPopoverFromRect:(CGRect)targetRect inView:(UIView *)targetView animated:(BOOL)animated
Parameters
- targetRect
present the popover from the given rect
- targetView
the view that contains the given targetRect
- animated
set to YES to fade-in the popover
Discussion
display the popover from a given rect
Declared In
LLPopover.h