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 | 2 | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
| 3 | 3 | <plist version="1.0"> |
| 4 | 4 | <dict> |
| 5 | - <key>MOBAppSecret</key> | |
| 6 | - <string>95c22305698a8218b58c6a0fc5fe630a</string> | |
| 7 | - <key>MOBAppKey</key> | |
| 8 | - <string>134f952a9e004</string> | |
| 9 | 5 | <key>CFBundleDevelopmentRegion</key> |
| 10 | 6 | <string>en</string> |
| 11 | 7 | <key>CFBundleDisplayName</key> |
| ... | ... | @@ -84,6 +80,10 @@ |
| 84 | 80 | </array> |
| 85 | 81 | <key>LSRequiresIPhoneOS</key> |
| 86 | 82 | <true/> |
| 83 | + <key>MOBAppKey</key> | |
| 84 | + <string>134f952a9e004</string> | |
| 85 | + <key>MOBAppSecret</key> | |
| 86 | + <string>95c22305698a8218b58c6a0fc5fe630a</string> | |
| 87 | 87 | <key>NSAppTransportSecurity</key> |
| 88 | 88 | <dict> |
| 89 | 89 | <key>NSAllowsArbitraryLoads</key> | ... | ... |
CNLiveScioLive/Pages/Base/CNLiveBaseNavigationController.m
CNLiveScioLive/Pages/Base/CNLiveENTabBarController.m
CNLiveScioLive/Pages/Home/抽屉效果/Controller/CNHomeRightViewController.m
| ... | ... | @@ -196,5 +196,12 @@ static NSString *homeRightHeaderFooterView = @"CNHomeRightHeaderFooterView"; |
| 196 | 196 | } |
| 197 | 197 | return _data; |
| 198 | 198 | } |
| 199 | +- (BOOL)shouldAutorotate{ | |
| 200 | + return NO; | |
| 201 | +} | |
| 202 | +- (UIInterfaceOrientationMask)supportedInterfaceOrientations { | |
| 203 | + return UIInterfaceOrientationMaskPortrait; | |
| 204 | + | |
| 205 | +} | |
| 199 | 206 | |
| 200 | 207 | @end | ... | ... |
CNLiveScioLive/Pages/SDK/XLSlideMenu/XLSlideMenu.m
| ... | ... | @@ -28,8 +28,16 @@ static CGFloat MinActionSpeed = 500; |
| 28 | 28 | @end |
| 29 | 29 | |
| 30 | 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 | 41 | if (self = [super init]) { |
| 34 | 42 | _rootViewController = rootViewController; |
| 35 | 43 | [self addChildViewController:_rootViewController]; |
| ... | ... | @@ -318,12 +326,16 @@ static CGFloat MinActionSpeed = 500; |
| 318 | 326 | |
| 319 | 327 | //取消自动旋转 |
| 320 | 328 | - (BOOL)shouldAutorotate { |
| 321 | - return false; | |
| 329 | + return NO; | |
| 330 | +} | |
| 331 | + | |
| 332 | +- (UIInterfaceOrientationMask)supportedInterfaceOrientations { | |
| 333 | + return UIInterfaceOrientationMaskPortrait; | |
| 334 | + | |
| 322 | 335 | } |
| 323 | 336 | |
| 324 | 337 | - (void)didReceiveMemoryWarning { |
| 325 | 338 | [super didReceiveMemoryWarning]; |
| 326 | 339 | } |
| 327 | 340 | |
| 328 | - | |
| 329 | 341 | @end | ... | ... |