修复bug
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#import "XPLoginInputView.h"
|
||||
#import "XPLoginAraeViewController.h"
|
||||
#import "XPForgetPwdViewController.h"
|
||||
#import "PISwitchingEnvironmentVC.h"
|
||||
|
||||
UIKIT_EXTERN NSString * const kYouMiNumberCountKey;
|
||||
NSString * const HadAgreePrivacy = @"HadAgreePrivacy";
|
||||
@@ -111,6 +112,11 @@ NSString * const HadAgreePrivacy = @"HadAgreePrivacy";
|
||||
[super viewDidLoad];
|
||||
[self createUI];
|
||||
[self racBind];
|
||||
#ifdef DEBUG
|
||||
[self setSwitchingEnvironmentVC];
|
||||
#else
|
||||
#endif
|
||||
|
||||
self.selectType = 0;
|
||||
NSString *code = [NSString getCountryCode];
|
||||
self.pi_phoneAreaCode = [code stringByReplacingOccurrencesOfString:@"+" withString:@""];
|
||||
@@ -347,7 +353,25 @@ NSString * const HadAgreePrivacy = @"HadAgreePrivacy";
|
||||
}
|
||||
|
||||
}
|
||||
-(void)setSwitchingEnvironmentVC{
|
||||
UIButton *but = [UIButton new];
|
||||
[but setTitle:@"切换环境" forState:UIControlStateNormal];
|
||||
[but setTitleColor:[UIColor blueColor] forState:UIControlStateNormal];
|
||||
[self.view addSubview:but];
|
||||
[but addTarget:self action:@selector(switchingEnvironmentVCAction) forControlEvents:UIControlEventTouchUpInside];
|
||||
[but mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.trailing.mas_equalTo(-kGetScaleWidth(30));
|
||||
make.top.mas_equalTo(kStatusBarHeight+20);
|
||||
}];
|
||||
|
||||
}
|
||||
-(void)switchingEnvironmentVCAction{
|
||||
#ifdef DEBUG
|
||||
PISwitchingEnvironmentVC *vc = [PISwitchingEnvironmentVC new];
|
||||
[self.navigationController pushViewController:vc animated:YES];
|
||||
#else
|
||||
#endif
|
||||
}
|
||||
- (void)setConfigPrivacyAlertView {
|
||||
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
|
||||
NSString *isShow = [defaults objectForKey:kYouMiNumberCountKey];
|
||||
|
Reference in New Issue
Block a user