diff --git a/SlideMenu/Helper Classes/FriendsViewController.m b/SlideMenu/Helper Classes/FriendsViewController.m index ac1b1d7..cfb7614 100644 --- a/SlideMenu/Helper Classes/FriendsViewController.m +++ b/SlideMenu/Helper Classes/FriendsViewController.m @@ -20,11 +20,6 @@ - (BOOL)slideNavigationControllerShouldDisplayLeftMenu return YES; } -- (BOOL)slideNavigationControllerShouldDisplayRightMenu -{ - return NO; -} - - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return 20; diff --git a/SlideMenu/Helper Classes/LeftMenuViewController.m b/SlideMenu/Helper Classes/LeftMenuViewController.m index ec804cc..9370563 100755 --- a/SlideMenu/Helper Classes/LeftMenuViewController.m +++ b/SlideMenu/Helper Classes/LeftMenuViewController.m @@ -32,9 +32,6 @@ - (void)viewDidLoad UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"leftMenu.jpg"]]; self.tableView.backgroundView = imageView; - - self.view.layer.borderWidth = .6; - self.view.layer.borderColor = [UIColor lightGrayColor].CGColor; } #pragma mark - UITableView Delegate & Datasrouce - diff --git a/SlideMenu/Helper Classes/RightMenuViewController.m b/SlideMenu/Helper Classes/RightMenuViewController.m index 3cb8daa..96a7767 100644 --- a/SlideMenu/Helper Classes/RightMenuViewController.m +++ b/SlideMenu/Helper Classes/RightMenuViewController.m @@ -20,9 +20,6 @@ - (void)viewDidLoad UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"rightMenu.jpg"]]; self.tableView.backgroundView = imageView; - - self.view.layer.borderWidth = .6; - self.view.layer.borderColor = [UIColor lightGrayColor].CGColor; } #pragma mark - UITableView Delegate & Datasrouce - diff --git a/SlideMenu/Source/Animations/SlideNavigationContorllerAnimatorSlide.m b/SlideMenu/Source/Animations/SlideNavigationContorllerAnimatorSlide.m index 35439aa..9e2c0c3 100644 --- a/SlideMenu/Source/Animations/SlideNavigationContorllerAnimatorSlide.m +++ b/SlideMenu/Source/Animations/SlideNavigationContorllerAnimatorSlide.m @@ -63,7 +63,7 @@ - (void)prepareMenuForAnimation:(Menu)menu if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")) { - rect.origin.x = self.slideMovement; + rect.origin.x = (menu == MenuLeft) ? self.slideMovement*-1 : self.slideMovement; } else { diff --git a/SlideMenu/Source/SlideNavigationController.m b/SlideMenu/Source/SlideNavigationController.m index 37089f8..091ea91 100644 --- a/SlideMenu/Source/SlideNavigationController.m +++ b/SlideMenu/Source/SlideNavigationController.m @@ -851,4 +851,18 @@ - (void)setMenuRevealAnimator:(id)menuRevealA _menuRevealAnimator = menuRevealAnimator; } +- (void)setLeftMenu:(UIViewController *)leftMenu +{ + [_leftMenu.view removeFromSuperview]; + + _leftMenu = leftMenu; +} + +- (void)setRightMenu:(UIViewController *)rightMenu +{ + [_rightMenu.view removeFromSuperview]; + + _rightMenu = rightMenu; +} + @end diff --git a/SlideMenu/en.lproj/MainStoryboard_iPhone.storyboard b/SlideMenu/en.lproj/MainStoryboard_iPhone.storyboard index e8d5d55..f941c10 100644 --- a/SlideMenu/en.lproj/MainStoryboard_iPhone.storyboard +++ b/SlideMenu/en.lproj/MainStoryboard_iPhone.storyboard @@ -1,8 +1,8 @@ - + - - + + @@ -70,7 +70,7 @@ - + @@ -227,7 +227,7 @@ - + @@ -253,7 +253,7 @@ - + @@ -289,13 +289,14 @@ + - + @@ -334,7 +335,7 @@ - + @@ -370,13 +371,16 @@ + + + - + @@ -401,7 +405,7 @@ - + @@ -473,4 +477,4 @@ - \ No newline at end of file + diff --git a/iOS-Slide-Menu.podspec b/iOS-Slide-Menu.podspec index 7069ab7..413ff98 100644 --- a/iOS-Slide-Menu.podspec +++ b/iOS-Slide-Menu.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'iOS-Slide-Menu' - s.version = '1.4.3' + s.version = '1.4.4' s.summary = 'A Slide Menu for iOS' s.homepage = 'https://github.com/aryaxt/iOS-Slide-Menu' s.license = { @@ -8,7 +8,7 @@ Pod::Spec.new do |s| :file => 'License.txt' } s.author = {'Aryan Ghassemi' => 'https://github.com/aryaxt/iOS-Slide-Menu'} - s.source = {:git => 'https://github.com/aryaxt/iOS-Slide-Menu.git', :tag => '1.4.3'} + s.source = {:git => 'https://github.com/aryaxt/iOS-Slide-Menu.git', :tag => '1.4.4'} s.platform = :ios, '6.0' s.source_files = 'SlideMenu/Source/*.{h,m}', 'SlideMenu/Source/Animations/*.{h,m}', 'SlideMenu/Source/Assets/*.{png}' s.resources = ['SlideMenu/Source/Assets/**/*']