Fitting within the Menu Bounds
mbalex99 opened this issue · comments
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
#274 (comment),
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
#274 (comment),
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)