Open mbalex99 opened 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.
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
What did you use instead?
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
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)
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.