Commit caa0bc56548841116c8cec738d661aab71351344
1 parent
b2ecd024
no message
Showing
5 changed files
with
29 additions
and
10 deletions
CNLiveScioLive/Info.plist
| @@ -2,10 +2,6 @@ | @@ -2,10 +2,6 @@ | ||
| 2 | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | 2 | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
| 3 | <plist version="1.0"> | 3 | <plist version="1.0"> |
| 4 | <dict> | 4 | <dict> |
| 5 | - <key>MOBAppSecret</key> | ||
| 6 | - <string>95c22305698a8218b58c6a0fc5fe630a</string> | ||
| 7 | - <key>MOBAppKey</key> | ||
| 8 | - <string>134f952a9e004</string> | ||
| 9 | <key>CFBundleDevelopmentRegion</key> | 5 | <key>CFBundleDevelopmentRegion</key> |
| 10 | <string>en</string> | 6 | <string>en</string> |
| 11 | <key>CFBundleDisplayName</key> | 7 | <key>CFBundleDisplayName</key> |
| @@ -84,6 +80,10 @@ | @@ -84,6 +80,10 @@ | ||
| 84 | </array> | 80 | </array> |
| 85 | <key>LSRequiresIPhoneOS</key> | 81 | <key>LSRequiresIPhoneOS</key> |
| 86 | <true/> | 82 | <true/> |
| 83 | + <key>MOBAppKey</key> | ||
| 84 | + <string>134f952a9e004</string> | ||
| 85 | + <key>MOBAppSecret</key> | ||
| 86 | + <string>95c22305698a8218b58c6a0fc5fe630a</string> | ||
| 87 | <key>NSAppTransportSecurity</key> | 87 | <key>NSAppTransportSecurity</key> |
| 88 | <dict> | 88 | <dict> |
| 89 | <key>NSAllowsArbitraryLoads</key> | 89 | <key>NSAllowsArbitraryLoads</key> |
CNLiveScioLive/Pages/Base/CNLiveBaseNavigationController.m
| @@ -66,7 +66,7 @@ | @@ -66,7 +66,7 @@ | ||
| 66 | 66 | ||
| 67 | - (BOOL)shouldAutorotate { | 67 | - (BOOL)shouldAutorotate { |
| 68 | return self.topViewController.shouldAutorotate; | 68 | return self.topViewController.shouldAutorotate; |
| 69 | - | 69 | + |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | - (UIInterfaceOrientationMask)supportedInterfaceOrientations { | 72 | - (UIInterfaceOrientationMask)supportedInterfaceOrientations { |
CNLiveScioLive/Pages/Base/CNLiveENTabBarController.m
| @@ -120,7 +120,7 @@ | @@ -120,7 +120,7 @@ | ||
| 120 | 120 | ||
| 121 | - (BOOL)shouldAutorotate{ | 121 | - (BOOL)shouldAutorotate{ |
| 122 | return self.selectedViewController.shouldAutorotate; | 122 | return self.selectedViewController.shouldAutorotate; |
| 123 | - | 123 | + |
| 124 | } | 124 | } |
| 125 | 125 | ||
| 126 | - (UIInterfaceOrientationMask)supportedInterfaceOrientations{ | 126 | - (UIInterfaceOrientationMask)supportedInterfaceOrientations{ |
CNLiveScioLive/Pages/Home/抽屉效果/Controller/CNHomeRightViewController.m
| @@ -196,5 +196,12 @@ static NSString *homeRightHeaderFooterView = @"CNHomeRightHeaderFooterView"; | @@ -196,5 +196,12 @@ static NSString *homeRightHeaderFooterView = @"CNHomeRightHeaderFooterView"; | ||
| 196 | } | 196 | } |
| 197 | return _data; | 197 | return _data; |
| 198 | } | 198 | } |
| 199 | +- (BOOL)shouldAutorotate{ | ||
| 200 | + return NO; | ||
| 201 | +} | ||
| 202 | +- (UIInterfaceOrientationMask)supportedInterfaceOrientations { | ||
| 203 | + return UIInterfaceOrientationMaskPortrait; | ||
| 204 | + | ||
| 205 | +} | ||
| 199 | 206 | ||
| 200 | @end | 207 | @end |
CNLiveScioLive/Pages/SDK/XLSlideMenu/XLSlideMenu.m
| @@ -28,8 +28,16 @@ static CGFloat MinActionSpeed = 500; | @@ -28,8 +28,16 @@ static CGFloat MinActionSpeed = 500; | ||
| 28 | @end | 28 | @end |
| 29 | 29 | ||
| 30 | @implementation XLSlideMenu | 30 | @implementation XLSlideMenu |
| 31 | - | ||
| 32 | --(instancetype)initWithRootViewController:(UIViewController*)rootViewController{ | 31 | +- (void)viewWillAppear:(BOOL)animated { |
| 32 | + NSNumber *orientationUnknown = [NSNumber numberWithInt:UIInterfaceOrientationUnknown]; | ||
| 33 | + [[UIDevice currentDevice] setValue:orientationUnknown forKey:@"orientation"]; | ||
| 34 | + | ||
| 35 | + NSNumber *orientationTarget = [NSNumber numberWithInt:UIInterfaceOrientationMaskPortrait]; | ||
| 36 | + [[UIDevice currentDevice] setValue:orientationTarget forKey:@"orientation"]; | ||
| 37 | + | ||
| 38 | + [[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationPortrait]; | ||
| 39 | +} | ||
| 40 | +- (instancetype)initWithRootViewController:(UIViewController*)rootViewController{ | ||
| 33 | if (self = [super init]) { | 41 | if (self = [super init]) { |
| 34 | _rootViewController = rootViewController; | 42 | _rootViewController = rootViewController; |
| 35 | [self addChildViewController:_rootViewController]; | 43 | [self addChildViewController:_rootViewController]; |
| @@ -318,12 +326,16 @@ static CGFloat MinActionSpeed = 500; | @@ -318,12 +326,16 @@ static CGFloat MinActionSpeed = 500; | ||
| 318 | 326 | ||
| 319 | //取消自动旋转 | 327 | //取消自动旋转 |
| 320 | - (BOOL)shouldAutorotate { | 328 | - (BOOL)shouldAutorotate { |
| 321 | - return false; | 329 | + return NO; |
| 330 | +} | ||
| 331 | + | ||
| 332 | +- (UIInterfaceOrientationMask)supportedInterfaceOrientations { | ||
| 333 | + return UIInterfaceOrientationMaskPortrait; | ||
| 334 | + | ||
| 322 | } | 335 | } |
| 323 | 336 | ||
| 324 | - (void)didReceiveMemoryWarning { | 337 | - (void)didReceiveMemoryWarning { |
| 325 | [super didReceiveMemoryWarning]; | 338 | [super didReceiveMemoryWarning]; |
| 326 | } | 339 | } |
| 327 | 340 | ||
| 328 | - | ||
| 329 | @end | 341 | @end |