diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2013-12-24 01:46:34 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2013-12-24 01:46:34 -0800 |
commit | 81628115a7ac1ddd54abee383786a8bf9a0d6585 (patch) | |
tree | 81191e8e43047e9a5d59fc4a8c0ef2e6d180ab55 /MobileCydia.mm | |
parent | 0909f943e1d9755df5c07b4fbd1c54f4428a7227 (diff) |
Fix iOS 7 autorotate (need setRootViewController).
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index aa8ad52..8a9590d 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -9573,6 +9573,8 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi return; [window_ addSubview:[tabbar_ view]]; + if ([window_ respondsToSelector:@selector(setRootViewController:)]) + [window_ setRootViewController:tabbar_]; [[emulated_ view] removeFromSuperview]; emulated_ = nil; [window_ setUserInteractionEnabled:YES]; @@ -10282,6 +10284,8 @@ _trace(); emulated_ = [[[CydiaLoadingViewController alloc] init] autorelease]; [window_ addSubview:[emulated_ view]]; + if ([window_ respondsToSelector:@selector(setRootViewController:)]) + [window_ setRootViewController:emulated_]; [self performSelector:@selector(loadData) withObject:nil afterDelay:0]; _trace(); |