-
Notifications
You must be signed in to change notification settings - Fork 24
/
PulldownMenu.h
52 lines (43 loc) · 1.54 KB
/
PulldownMenu.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// PulldownMenu.h
//
// Created by Bernard Gatt
//
#import <UIKit/UIKit.h>
@protocol PulldownMenuDelegate
-(void)menuItemSelected:(NSIndexPath *)indexPath;
-(void)pullDownAnimated:(BOOL)open;
@end
@interface PulldownMenu : UIView<UITableViewDataSource, UITableViewDelegate> {
UITableView *menuList;
NSMutableArray *menuItems;
UIView *handle;
UIView *masterView;
UIPanGestureRecognizer *navigationDragGestureRecognizer;
UIPanGestureRecognizer *handleDragGestureRecognizer;
UINavigationController *masterNavigationController;
UIDeviceOrientation currentOrientation;
float topMargin;
float tableHeight;
}
@property (nonatomic, assign) id<PulldownMenuDelegate> delegate;
@property (nonatomic, retain) UITableView *menuList;
@property (nonatomic, retain) UIView *handle;
/* Appearance Properties */
@property (nonatomic) float handleHeight;
@property (nonatomic) float animationDuration;
@property (nonatomic) float topMarginPortrait;
@property (nonatomic) float topMarginLandscape;
@property (nonatomic) UIColor *cellColor;
@property (nonatomic) UIColor *cellSelectedColor;
@property (nonatomic) UIColor *cellTextColor;
@property (nonatomic) UITableViewCellSelectionStyle cellSelectionStyle;
@property (nonatomic) UIFont *cellFont;
@property (nonatomic) float cellHeight;
@property (nonatomic) BOOL fullyOpen;
- (id)initWithNavigationController:(UINavigationController *)navigationController;
- (id)initWithView:(UIView *)view;
- (void)insertButton:(NSString *)title;
- (void)loadMenu;
- (void)animateDropDown;
@end