Jabber Guest iOS SDK

- Main Page
- Modules
- Classes

All Classes Functions Variables Enumerations Enumerator Properties Groups
FPPopoverController.h
1 //
2 // FPPopoverController.h
3 //
4 // Created by Alvise Susmel on 1/5/12.
5 // Copyright (c) 2012 Fifty Pixels Ltd. All rights reserved.
6 //
7 // https://github.com/50pixels/FPPopover
8
9 #import <UIKit/UIKit.h>
10 #import <QuartzCore/QuartzCore.h>
11
12 #import "ARCMacros.h"
13
14 #import "FPPopoverView.h"
15 #import "FPTouchView.h"
16
17
18 @class FPPopoverController;
19 @protocol FPPopoverControllerDelegate <NSObject>
20
21 @optional
22 - (void)popoverControllerDidDismissPopover:(FPPopoverController *)popoverController;
23 - (void)presentedNewPopoverController:(FPPopoverController *)newPopoverController
24 shouldDismissVisiblePopover:(FPPopoverController*)visiblePopoverController;
25 @end
26
27 @interface FPPopoverController : UIViewController
28
29 //ARC-enable and disable support
30 #if __has_feature(objc_arc)
31 @property(nonatomic,assign) id<FPPopoverControllerDelegate> delegate;
32 #else
33 @property(nonatomic,assign) id<FPPopoverControllerDelegate> delegate;
34 #endif
35
40 @property(nonatomic,readonly) FPTouchView* touchView;
41 @property(nonatomic,readonly) FPPopoverView* contentView;
42
43 @property(nonatomic,assign) FPPopoverArrowDirection arrowDirection;
44
45 @property(nonatomic,assign) CGSize contentSize;
46 @property(nonatomic,assign) CGPoint origin;
47 @property(nonatomic,assign) CGFloat alpha;
48
50 @property(nonatomic,assign) FPPopoverTint tint;
51
53 @property(nonatomic, assign) BOOL border;
54
57 -(id)initWithViewController:(UIViewController*)viewController;
58 -(id)initWithViewController:(UIViewController*)viewController
59 delegate:(id<FPPopoverControllerDelegate>)delegate;
60
62 -(void)presentPopoverFromView:(UIView*)fromView;
63
65 -(void)presentPopoverFromPoint:(CGPoint)fromPoint;
66
68 -(void)dismissPopoverAnimated:(BOOL)animated;
69
71 typedef void (^FPPopoverCompletion)();
72 -(void)dismissPopoverAnimated:(BOOL)animated completion:(FPPopoverCompletion)completionBlock;
73
75 -(void)setShadowsHidden:(BOOL)hidden;
76
77 -(void)setupView;
78
79
80
81 @end