|
@@ -80,8 +80,7 @@
|
|
|
make.height.mas_equalTo(22.f);
|
|
|
}];
|
|
|
|
|
|
-// BOOL haveOpenMask = [HWDataManager getBoolWithKey:Consn_Fanzhuan_Exit_app_Open];
|
|
|
-// [_bottomNavSwitch setOn:haveOpenMask];
|
|
|
+
|
|
|
|
|
|
UILabel *navSwitchTipLabel = [[UILabel alloc] init];
|
|
|
navSwitchTipLabel.text = NSLocalizedString(@"cloudPhone_nav_show_tip",nil);
|
|
@@ -109,9 +108,6 @@
|
|
|
make.height.mas_equalTo(22.f);
|
|
|
}];
|
|
|
|
|
|
-// BOOL haveOpenMask = [HWDataManager getBoolWithKey:Consn_Fanzhuan_Exit_app_Open];
|
|
|
-// [_bottomNavSwitch setOn:haveOpenMask];
|
|
|
-
|
|
|
UILabel *fullScreenTipLabel = [[UILabel alloc] init];
|
|
|
fullScreenTipLabel.text = NSLocalizedString(@"cloudPhone_fullScreen_show_tip",nil);
|
|
|
fullScreenTipLabel.textAlignment = NSTextAlignmentCenter;
|
|
@@ -125,7 +121,10 @@
|
|
|
make.top.equalTo(_bottomNavSwitch.mas_bottom).offset(6);
|
|
|
}];
|
|
|
|
|
|
-
|
|
|
+ KWeakSelf
|
|
|
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.05 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
+ [weakSelf setAllSwitchFun];
|
|
|
+ });
|
|
|
|
|
|
/**********************************************************************************/
|
|
|
UIView *bg2View = [UIView new];
|
|
@@ -226,17 +225,26 @@
|
|
|
}];
|
|
|
}
|
|
|
|
|
|
+- (void)setAllSwitchFun
|
|
|
+{
|
|
|
+ BOOL haveShowBottonNavType = ![HWDataManager getBoolWithKey:Consn_player_Nav_hide];
|
|
|
+ [_bottomNavSwitch setOn:haveShowBottonNavType];
|
|
|
+}
|
|
|
|
|
|
-- (void)maskSwitchPressed:(UISwitch *)maskSwitch{
|
|
|
- HLog(@"11111");
|
|
|
-// [HWDataManager setBoolWithKey:Consn_Fanzhuan_Exit_app_Open value:maskSwitch.on];
|
|
|
-//
|
|
|
-// if (maskSwitch.on) {
|
|
|
-// [[iToast makeText:NSLocalizedString(@"my_set_no_fanzhuan_exit_open",nil)] show];
|
|
|
-// }
|
|
|
-// else{
|
|
|
-// [[iToast makeText:NSLocalizedString(@"my_set_no_fanzhuan_exit_close",nil)] show];
|
|
|
-// }
|
|
|
+- (void)maskSwitchPressed:(SYJUISwitch *)maskSwitch{
|
|
|
+
|
|
|
+ if(_bottomNavSwitch == maskSwitch){
|
|
|
+ if (maskSwitch.on) {
|
|
|
+ [HWDataManager setBoolWithKey:Consn_player_Nav_hide value:NO];
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ [HWDataManager setBoolWithKey:Consn_player_Nav_hide value:YES];
|
|
|
+ }
|
|
|
+
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:getPlayerBottomNavNotification object:nil];
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
#pragma mark 按钮事件
|