mikefrederick / MFSideMenu

Facebook-like side menu for iOS
Other
1.17k stars 291 forks source link

Blackscreen on ios 7.1 iPhone 4 only #182

Closed agusjava closed 9 years ago

agusjava commented 9 years ago

Good day.

I'm working in this app with a login... next step if success a tabbarcontroller is presented as modal with a side menu on the right side.

The problem is specifically in iOS 7.1.2 iPhone 4. For others OS it works perfectly.

I'm presenting a UINavigationController @interface EWMenuMaster : UINavigationController

EWAppDelegate delegate = (EWAppDelegate ) [[UIApplication sharedApplication] delegate];

EWMenuViewController *left = [[EWMenuViewController alloc] init];
left.close = self;

MFSideMenuContainerViewController *container = [MFSideMenuContainerViewController
                                                containerWithCenterViewController:self
                                                leftMenuViewController:nil
                                                rightMenuViewController:left];

container.panMode = MFSideMenuPanModeSideMenu;

delegate.window.rootViewController = container;
[delegate.window makeKeyAndVisible];

I'm not sure why this is happening.

agusjava commented 9 years ago

Wrote a dispatch with 1 second timer. Everything is working now.