-
Notifications
You must be signed in to change notification settings - Fork 291
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
Comments
iOS5 version would be very useful. Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint' NSLayout iOS6. Thanks. |
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... |
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. |
Comment these lines (MFSideMenu.m near line 130 ) :
// [containerView addConstraint:self.topConstraint]; 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.. |
I just removed the code that makes apps crash, iOS4.3+, no autolayout Enjoy. |
Thanks |
@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? |
thank you so much!!! |
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
The text was updated successfully, but these errors were encountered: