9 #import <UIKit/UIKit.h>
10 #import <QuartzCore/QuartzCore.h>
14 #import "FPPopoverView.h"
15 #import "FPTouchView.h"
18 @class FPPopoverController;
19 @protocol FPPopoverControllerDelegate <NSObject>
22 - (void)popoverControllerDidDismissPopover:(FPPopoverController *)popoverController;
23 - (void)presentedNewPopoverController:(FPPopoverController *)newPopoverController
24 shouldDismissVisiblePopover:(FPPopoverController*)visiblePopoverController;
27 @interface FPPopoverController : UIViewController
30 #if __has_feature(objc_arc)
31 @property(nonatomic,assign) id<FPPopoverControllerDelegate> delegate;
33 @property(nonatomic,assign) id<FPPopoverControllerDelegate> delegate;
40 @property(nonatomic,readonly) FPTouchView* touchView;
41 @property(nonatomic,readonly) FPPopoverView* contentView;
43 @property(nonatomic,assign) FPPopoverArrowDirection arrowDirection;
44 @property(nonatomic,assign) CGSize contentSize;
45 @property(nonatomic,assign) CGPoint origin;
46 @property(nonatomic,assign) CGFloat alpha;
49 @property(nonatomic,assign) CGFloat axOffset;
50 @property(nonatomic,assign) CGFloat ayOffset;
54 @property(nonatomic,assign) FPPopoverTint tint;
57 @property(nonatomic, assign) BOOL border;
61 -(id)initWithViewController:(UIViewController*)viewController;
62 -(id)initWithViewController:(UIViewController*)viewController
63 delegate:(
id<FPPopoverControllerDelegate>)delegate;
66 -(void)presentPopoverFromView:(UIView*)fromView;
69 -(void)presentPopoverFromPoint:(CGPoint)fromPoint;
72 -(void)dismissPopoverAnimated:(BOOL)animated;
75 typedef void (^FPPopoverCompletion)();
76 -(void)dismissPopoverAnimated:(BOOL)animated completion:(FPPopoverCompletion)completionBlock;
79 -(void)setShadowsHidden:(BOOL)hidden;