Skip to content

Commit

Permalink
New fix for issue #90 based on the arthurfok suggestion I added the a…
Browse files Browse the repository at this point in the history
…ddRightMenu call and changed the check for the menu existence.

#90
  • Loading branch information
stefanoa committed Aug 24, 2013
1 parent 5d95c58 commit 11e9657
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion SASlideMenu/SASlideMenu/SASlideMenuRootViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
-(void) doSlideToSide;
-(void) doSlideToLeftSide;
-(void) rightMenuAction;

-(void) addRightMenu;

-(void) panItem:(UIPanGestureRecognizer*)gesture;
@end
8 changes: 4 additions & 4 deletions SASlideMenu/SASlideMenu/SASlideMenuViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ -(void) revealLeftMenu{
[self.rootController doSlideToSide];
}
-(void) revealRightMenu{
if ([self.slideMenuDataSource respondsToSelector:@selector(hasRightMenuForIndexPath:)]) {
if ([self.slideMenuDataSource hasRightMenuForIndexPath:self.selectedIndexPath]) {
[self.rootController doSlideToLeftSide];
}
if (self.rootController.isRightMenuEnabled && self.rootController.rightMenu != nil) {
[self.rootController addRightMenu];
[self.rootController doSlideToLeftSide];
}
}


#pragma mark -
#pragma mark UIGestureRecognizerDelegate
- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer {
Expand Down

0 comments on commit 11e9657

Please sign in to comment.