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

iOS 6.0 required? #19

Closed
yvbeek opened this issue Nov 1, 2012 · 8 comments
Closed

iOS 6.0 required? #19

yvbeek opened this issue Nov 1, 2012 · 8 comments

Comments

@yvbeek
Copy link

yvbeek commented Nov 1, 2012

I've been playing around with the new version: 0.3

My app breaks In MFSideMenu.m - navigationControllerDidAppear on the line:
[menuView setTranslatesAutoresizingMaskIntoConstraints:NO];

It seems to be an iOS 6 only method.

Could you make the library iOS 5 (and higher) compatible?
Thanks

@AndyJordan
Copy link

iOS5 version would be very useful.

Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint'

NSLayout iOS6.

Thanks.

@kukosk
Copy link

kukosk commented Nov 1, 2012

I'm creating an app with MFSideMenu right now, and I would really appreciate if it can run on iOS5 as a lot of users uses it...

@mikefrederick
Copy link
Owner

There are issues with the sizing of the side menu when I don't use NSLayoutConstraint. If I figure it out I will surely add support for iOS5 again.

@bonui
Copy link

bonui commented Nov 15, 2012

Comment these lines (MFSideMenu.m near line 130 ) :

//[menuView setTranslatesAutoresizingMaskIntoConstraints:NO];

// [containerView addConstraint:self.topConstraint];
// [containerView addConstraint:self.rightConstraint];
// [containerView addConstraint:self.bottomConstraint];
//[containerView addConstraint:self.leftConstraint];

Go to the XIB, in the first tab you just uncheck "Use autolayout"

That's it ! Work like a charm even in 4.3 :)

maybe you'll have problems with rotations or iPhone 5..

@OtaK
Copy link

OtaK commented Dec 7, 2012

I just removed the code that makes apps crash, iOS4.3+, no autolayout

Enjoy.

https://github.com/OtaK/MFSideMenu/tree/ios5

@yvbeek
Copy link
Author

yvbeek commented Dec 8, 2012

Thanks

@yvbeek yvbeek closed this as completed Dec 8, 2012
@plaetzchen
Copy link

@OtaK There is a problem with your iOS5 branch on iOS6 devices: The SideMenu is hidden under the statusBar.

EDIT: I hot-fixed it with this in navigationControllerDidAppear in MFSideMenu.m:

float version = [[[UIDevice currentDevice] systemVersion] floatValue]; if (version >= 6.0){ [menuView setFrame:CGRectMake(menuView.frame.origin.x, menuView.frame.origin.y+19, menuView.frame.size.width, menuView.frame.size.height)]; }

Is there a better way to do so?

@donobono
Copy link

thank you so much!!!

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

No branches or pull requests

8 participants