-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
950 additions
and
21 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// MFSideMenu.h | ||
// | ||
// Created by Michael Frederick on 3/17/12. | ||
// | ||
|
||
#ifndef MFSideMenu_h | ||
#define MFSideMenu_h | ||
|
||
#import "MFSideMenuManager.h" | ||
#import "UIViewController+MFSideMenu.h" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// | ||
// MFSideMenuManager.h | ||
// | ||
// Created by Michael Frederick on 3/18/12. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
#define kSidebarWidth 270 | ||
|
||
typedef enum { | ||
MenuLeftHandSide, // show the menu on the left hand side | ||
MenuRightHandSide // show the menu on the right hand side | ||
} MenuSide; | ||
|
||
typedef enum { | ||
MenuButtonEnabled = 1 << 0, // enable the 'menu' UIBarButtonItem | ||
BackButtonEnabled = 1 << 1 // enable the 'back' UIBarButtonItem | ||
} MenuOptions; | ||
|
||
|
||
@interface MFSideMenuManager : NSObject<UIGestureRecognizerDelegate> { | ||
CGPoint originalOrigin; | ||
} | ||
|
||
@property (nonatomic, strong) UINavigationController *navigationController; | ||
@property (nonatomic, strong) UITableViewController *sideMenuController; | ||
@property (nonatomic, assign) MenuSide menuSide; | ||
@property (nonatomic, assign) MenuOptions options; | ||
|
||
+ (MFSideMenuManager *) sharedManager; | ||
|
||
+ (void) configureWithNavigationController:(UINavigationController *)controller | ||
sideMenuController:(id)menuController; | ||
|
||
+ (void) configureWithNavigationController:(UINavigationController *)controller | ||
sideMenuController:(id)menuController | ||
menuSide:(MenuSide)side | ||
options:(MenuOptions)options; | ||
|
||
// the x position of the nav controller when the menu is shown | ||
+ (CGFloat) menuVisibleNavigationControllerXPosition; | ||
|
||
+ (BOOL) menuButtonEnabled; | ||
+ (BOOL) backButtonEnabled; | ||
|
||
@end |
Oops, something went wrong.