romaonthego / RESideMenu

iOS 7/8 style side menu with parallax effect.
MIT License
7.09k stars 1.35k forks source link

managing right and left menu #220

Open farazhaider88 opened 9 years ago

farazhaider88 commented 9 years ago

hi, i am working on an application where i needed to have both right and left menu. i am using reside menu and by changing _contentViewInPortraitOffsetCenterX to 70.f, i am getting my desired result but there is a problem when i am showing right menu. please see attach screenshots for these. the problem is that right side view getting inside my content view, i would like it to move to more right so i get it same as left menu.

screen shot 2015-02-20 at 10 36 52 pm

screen shot 2015-02-20 at 10 36 58 pm

pahnev commented 9 years ago

Did this just yesterday. You have to make the tableview smaller.

Here is the size I'm using on right side:

UITableView *tableView = [[UITableView alloc] initWithFrame:CGRectMake(self.view.frame.size.width/3.5f, (self.view.frame.size.height - 54 * 7) / 2.0f, self.view.frame.size.width/1.5f, 54 * 10) style:UITableViewStylePlain];
        tableView.autoresizingMask = UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleWidth;
farazhaider88 commented 9 years ago

you mean to say if i m doing it from storyboard then i need to make my table width half of the view and push it on a right side?

pahnev commented 9 years ago

That's how I ended up making my menu for the right side.

Or you could align the text to right but that looks pretty horrible.

On Sat, Feb 21, 2015 at 3:55 AM, farazhaider88 notifications@github.com wrote:

you mean to say if i m doing it from storyboard then i need to make my table width half of the view and push it on a right side?

Reply to this email directly or view it on GitHub: https://github.com/romaonthego/RESideMenu/issues/220#issuecomment-75364622

farazhaider88 commented 9 years ago

yap its look weird on big devices.(iphone 6 & 6+)

pahnev commented 9 years ago

I'm keeping the original panning animation so for me it looks the same. Perhaps you can resize yours differently for each screen size.