romaonthego / RESideMenu

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

Fitting within the Menu Bounds #274

Open mbalex99 opened 8 years ago

mbalex99 commented 8 years ago

I'm totally stuck but how do I fit something within the menu bounds?

I'd like to stick a UITableView here perfectly from end to end. I'm down with autolayout or even setting the frame but I think I'm totally confused about how to calculate this length.

reside_menu_question

Gman9855 commented 8 years ago

Did you ever find a solution to this? I'm looking to center a view within the menu view controller, but can't seem to find a way to calculate that width you mention.

mbalex99 commented 8 years ago

I ended up not using this project :-\

On Sun, Jun 5, 2016 at 11:20 AM Gman9855 notifications@github.com wrote:

Did you ever find a solution to this? I'm looking to center a view within the menu view controller, but can't seem to find a way to calculate that width you mention.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/romaonthego/RESideMenu/issues/274#issuecomment-223828447, or mute the thread https://github.com/notifications/unsubscribe/ACFSMbTDNYk0Y_hoZiIu7CL7Sy-HlHjqks5qIxOLgaJpZM4HId44 .

Maximilian Alexander mbalex99@gmail.com http://blog.edenmsg.com

Gman9855 commented 8 years ago

What did you use instead?

mbalex99 commented 8 years ago

I ended up writing my own implementation of a sliding menu.

On Sun, Jun 5, 2016 at 11:23 AM Gman9855 notifications@github.com wrote:

What did you use instead?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/romaonthego/RESideMenu/issues/274#issuecomment-223828596, or mute the thread https://github.com/notifications/unsubscribe/ACFSMZmGvszp7gNX_BV0F5wmPL0sOu7Sks5qIxQegaJpZM4HId44 .

Maximilian Alexander mbalex99@gmail.com http://blog.edenmsg.com

ThoastProductions commented 7 years ago

I also stumbled upon this problem.

The sourcecode says:

self.contentViewContainer.center = CGPointMake((UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation]) ? -self.contentViewInLandscapeOffsetCenterX : -self.contentViewInPortraitOffsetCenterX), self.contentViewContainer.center.y);

So your X-point should be (self.view.frame.size.width/2)-30 and your width should be self.view.frame.size.width-((self.view.frame.size.width/2)-30)