Skip to content

Commit

Permalink
Added Landscape Support
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Frederick committed Jul 2, 2012
1 parent 3015ddf commit 4ff3604
Show file tree
Hide file tree
Showing 8 changed files with 324 additions and 32 deletions.
Binary file not shown.
Expand Up @@ -2,6 +2,151 @@
<Bucket
type = "1"
version = "1.0">
<FileBreakpoints>
<FileBreakpoint
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "MFSideMenuDemo/MFSideMenu/UIViewController+MFSideMenu.m"
timestampString = "362440014.737321"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "22"
endingLineNumber = "22"
landmarkName = "-shouldAutorotateToInterfaceOrientation:"
landmarkType = "5">
</FileBreakpoint>
<FileBreakpoint
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "MFSideMenuDemo/MFSideMenu/MFSideMenuNavigationController.m"
timestampString = "362383438.385307"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "40"
endingLineNumber = "40"
landmarkName = "-shouldAutorotateToInterfaceOrientation:"
landmarkType = "5">
</FileBreakpoint>
<FileBreakpoint
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "MFSideMenuDemo/MFSideMenu/MFSideMenuManager.m"
timestampString = "362947085.697234"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "218"
endingLineNumber = "218"
landmarkName = "-handlePan:"
landmarkType = "5">
</FileBreakpoint>
<FileBreakpoint
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "MFSideMenuDemo/MFSideMenu/MFSideMenuManager.m"
timestampString = "362947085.697234"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "217"
endingLineNumber = "217"
landmarkName = "-handlePan:"
landmarkType = "5">
</FileBreakpoint>
<FileBreakpoint
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "MFSideMenuDemo/MFSideMenu/MFSideMenuManager.m"
timestampString = "362947085.697234"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "216"
endingLineNumber = "216"
landmarkName = "-handlePan:"
landmarkType = "5">
</FileBreakpoint>
<FileBreakpoint
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "MFSideMenuDemo/MFSideMenu/MFSideMenuManager.m"
timestampString = "362947085.697234"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "225"
endingLineNumber = "225"
landmarkName = "-handlePan:"
landmarkType = "5">
</FileBreakpoint>
<FileBreakpoint
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "MFSideMenuDemo/MFSideMenu/MFSideMenuManager.m"
timestampString = "362945586.594871"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "94"
endingLineNumber = "94"
landmarkName = "-setNavigationControllerOffset:"
landmarkType = "5">
</FileBreakpoint>
<FileBreakpoint
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "MFSideMenuDemo/MFSideMenu/MFSideMenuManager.m"
timestampString = "362947085.697234"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "115"
endingLineNumber = "115"
landmarkName = "-setNavigationControllerOffset:"
landmarkType = "5">
</FileBreakpoint>
<FileBreakpoint
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "MFSideMenuDemo/MFSideMenu/MFSideMenuManager.m"
timestampString = "362947085.697234"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "198"
endingLineNumber = "198"
landmarkName = "-handlePan:"
landmarkType = "5">
</FileBreakpoint>
<FileBreakpoint
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "MFSideMenuDemo/MFSideMenu/MFSideMenuManager.m"
timestampString = "362947085.697234"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "209"
endingLineNumber = "209"
landmarkName = "-handlePan:"
landmarkType = "5">
</FileBreakpoint>
<FileBreakpoint
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "MFSideMenuDemo/MFSideMenu/MFSideMenuManager.m"
timestampString = "362947085.697234"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "163"
endingLineNumber = "163"
landmarkName = "-setXAdjustedForInterfaceOrientation:point:"
landmarkType = "5">
</FileBreakpoint>
</FileBreakpoints>
<ExceptionBreakpoints>
<ExceptionBreakpoint
shouldBeEnabled = "Yes"
Expand Down
2 changes: 1 addition & 1 deletion MFSideMenuDemo/DemoViewController.m
Expand Up @@ -23,7 +23,7 @@ - (void)viewDidLoad

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
return YES;
}

- (IBAction)pushAnotherPressed:(id)sender {
Expand Down
5 changes: 4 additions & 1 deletion MFSideMenuDemo/DemoViewController.xib
Expand Up @@ -106,7 +106,7 @@ IG9mIHRoZSBVSU5hdmlnYXRpb25Db250cm9sbGVyIHRvIGJyaW5nIGl0IGJhY2suA</string>
</object>
</object>
</array>
<string key="NSFrame">{{0, 20}, {320, 460}}</string>
<string key="NSFrame">{{0, 64}, {320, 416}}</string>
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="646849533"/>
Expand All @@ -118,6 +118,9 @@ IG9mIHRoZSBVSU5hdmlnYXRpb25Db250cm9sbGVyIHRvIGJyaW5nIGl0IGJhY2suA</string>
</object>
</object>
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
<object class="IBUISimulatedNavigationBarMetrics" key="IBUISimulatedTopBarMetrics">
<bool key="IBUIPrompted">NO</bool>
</object>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
</array>
Expand Down
6 changes: 3 additions & 3 deletions MFSideMenuDemo/MFSideMenu/MFSideMenuManager.h
Expand Up @@ -9,16 +9,16 @@
#define kSidebarWidth 270

@interface MFSideMenuManager : NSObject<UIGestureRecognizerDelegate> {
CGPoint originalCenter;
CGPoint originalOrigin;
}


@property (nonatomic, strong) UINavigationController *navigationController;
@property (nonatomic, strong) UITableViewController *sideMenuController;

+ (MFSideMenuManager *) sharedManager;

// this is all you should need to setup your app
+ (void) configureWithNavigationController:(UINavigationController *)controller sideMenuController:(id)menuController;
+ (void) configureWithNavigationController:(UINavigationController *)controller
sideMenuController:(id)menuController;

@end

0 comments on commit 4ff3604

Please sign in to comment.