| 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 @property(nonatomic,assign) CGSize contentSize;
45 @property(nonatomic,assign) CGPoint origin;
46 @property(nonatomic,assign) CGFloat alpha;
47
48 // cisco/pauldunn 2014 08 23
49 @property(nonatomic,assign) CGFloat axOffset;
50 @property(nonatomic,assign) CGFloat ayOffset;
51
52
54 @property(nonatomic,assign) FPPopoverTint tint;
55
57 @property(nonatomic, assign) BOOL border;
58
61 -(id)initWithViewController:(UIViewController*)viewController;
62 -(id)initWithViewController:(UIViewController*)viewController
63 delegate:(id<FPPopoverControllerDelegate>)delegate;
64
66 -(void)presentPopoverFromView:(UIView*)fromView;
67
69 -(void)presentPopoverFromPoint:(CGPoint)fromPoint;
70
72 -(void)dismissPopoverAnimated:(BOOL)animated;
73
75 typedef void (^FPPopoverCompletion)();
76 -(void)dismissPopoverAnimated:(BOOL)animated completion:(FPPopoverCompletion)completionBlock;
77
79 -(void)setShadowsHidden:(BOOL)hidden;
80
81 -(void)setupView;
82
83
84
85 @end