Reputation: 5577
I am using RESideMenu to implement an iOS 7 style side menu with parallax effect, but I come across a situation where I need to implement the side menu for both right and left sides just like the old Facebook iOS application where the right menu was for friends list and the left menu for the navigation.
Upvotes: 2
Views: 4941
Reputation: 967
There are plenty of other libraries that uses same slide menu animation like RESideMenu. I found one, please see this link:
https://github.com/heroims/LeftRightSlider
Upvotes: 0
Reputation: 900
In RESideMenu.m
adjust the values like below
_contentViewInLandscapeOffsetCenterX = 100.f;
_contentViewInPortraitOffsetCenterX = 100.f;
have fun.
Upvotes: 0
Reputation: 11039
You can use this awesome and simple library
https://github.com/arturdev/AMSlideMenu
which supports left and right menus and fully customizable
Upvotes: 0
Reputation: 430
I have been trying to do for right item menu and it works by editing the value in RESideMenu.m at line :
if (!_contentViewInLandscapeOffsetCenterX)
_contentViewInLandscapeOffsetCenterX = CGRectGetHeight(self.view.frame) + 30.f;
if (!_contentViewInPortraitOffsetCenterX)
_contentViewInPortraitOffsetCenterX = CGRectGetWidth(self.view.frame) + 30.f;
changing the +30.f to -300.f or more to slide the view (space and view's width) to left. To your situation you may need to duplicate the function to make one for right one for left. I hope this help you or anyone else.
Upvotes: 3
Reputation: 80265
It seems simple to extend RESideMenu to include a third controller. You can adjust the contentViewInLandscapeOffsetCenterX
and contentViewInPortraitOffsetCenterX
to show on left or right side respectively.
If you don't feel like doing this, find an alternative solution at a site like www.cocoacontrols.com.
Upvotes: 0