Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing drawer width with rotation. #31

Closed
ghost opened this issue May 27, 2013 · 6 comments
Closed

Changing drawer width with rotation. #31

ghost opened this issue May 27, 2013 · 6 comments
Labels

Comments

@ghost
Copy link

ghost commented May 27, 2013

Inside the MMAppDelegate.m there's this part:

[drawerController setMaximumRightDrawerWidth:320.0];

I manually set this, however when rotating, I want it to still be full screen. Any ideas?

@kcharwood
Copy link
Contributor

Maybe try sub classing MMDrawerController, and set the width during the rotation callbacks? Make sure to call super.

Or in the drawer itself you could try overriding the rotation call back and setting it there.

I'm on vacation for a few days so I can try it myself.

Kevin Harwood


Sent from my iPhone

On May 26, 2013, at 8:39 PM, ChrisOSX notifications@github.com wrote:

Inside the MMAppDelegate.m there's this part:

[drawerController setMaximumRightDrawerWidth:320.0];

I manually set this, however when rotating, I want it to still be full screen. Any ideas?


Reply to this email directly or view it on GitHub.

@ghost
Copy link
Author

ghost commented May 27, 2013

Cool, I'll see what I can "attempt", still quite green at this :)

@kcharwood
Copy link
Contributor

I meant to say "can't try it myself..."

​If you're still struggling later in the week ill post a snippet. 


Sent from Mailbox for iPhone

On Sun, May 26, 2013 at 9:00 PM, ChrisOSX notifications@github.com
wrote:

Cool, I'll see what I can "attempt", still quite green at this :)

Reply to this email directly or view it on GitHub:
#31 (comment)

@ghost
Copy link
Author

ghost commented May 27, 2013

Not a huge rush, I have plenty to work on, since I'm ditching my storyboards. But as always any help would be appreciated.

@kcharwood
Copy link
Contributor

Ya I think if you create a custom subclass for MMDrawerController and override the UIViewController animation call backs, you should be good to go.

@larsacus
Copy link
Contributor

Created #36 to define subclassing procedures. Feel free to add input to make it easier for everyone since we all have different goals as to what this is supposed to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants