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

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

isVisible

If the popover is presented this will return YES

@property (nonatomic, assign, readonly) BOOL isVisible

Discussion

If the popover is presented this will return YES

Declared In

LLPopover.h

popoverLayout

The model object for the popover

@property (nonatomic, retain, readonly) LLPopoverLayout *popoverLayout

Discussion

The model object for the popover

You can modify it’s properties to change various aspects of the popover creation

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