热点连接部分bug修复
This commit is contained in:
@@ -65,9 +65,12 @@
|
||||
[self getLocation];
|
||||
_logInButton.backgroundColor=COLOR_LABEL_TITLE;
|
||||
_logInButton.layer.cornerRadius = 5;
|
||||
|
||||
[self.loginPhoneNumberTextField setValue:[UIColor colorWithRed:153/255.0f green:153/255.0f blue:153/255.0f alpha:1] forKeyPath:@"_placeholderLabel.textColor"];
|
||||
[self.loginPasswordTextField setValue:[UIColor colorWithRed:153/255.0f green:153/255.0f blue:153/255.0f alpha:1] forKeyPath:@"_placeholderLabel.textColor"];
|
||||
if (@available(iOS 13.0, *)){//iOS13之后,设置颜色的方便变更
|
||||
|
||||
}else{
|
||||
[self.loginPhoneNumberTextField setValue:[UIColor colorWithRed:153/255.0f green:153/255.0f blue:153/255.0f alpha:1] forKeyPath:@"_placeholderLabel.textColor"];
|
||||
[self.loginPasswordTextField setValue:[UIColor colorWithRed:153/255.0f green:153/255.0f blue:153/255.0f alpha:1] forKeyPath:@"_placeholderLabel.textColor"];
|
||||
}
|
||||
|
||||
[self.wangJiBtn addTarget:self action:@selector(forgetPassword:) forControlEvents:UIControlEventTouchUpInside];
|
||||
[self.wangJiBtn setTitleColor:[UIColor colorWithRed:146/255.0f green:146/255.0f blue:146/255.0f alpha:1] forState:UIControlStateNormal];
|
||||
@@ -133,6 +136,7 @@
|
||||
-(void)viewWillAppear:(BOOL)animated{
|
||||
// _geocodesearch.delegate=self;// 此处记得不用的时候需要置nil,否则影响内存的释放
|
||||
// _locService.delegate=self;
|
||||
[super viewWillAppear:animated];
|
||||
if ([CLLocationManager locationServicesEnabled]) {
|
||||
_locationManager = [[CLLocationManager alloc]init];
|
||||
_locationManager.delegate = self;
|
||||
@@ -187,7 +191,11 @@
|
||||
self.loginPhoneNumberTextField.leftView=phoneView;
|
||||
self.loginPhoneNumberTextField.leftViewMode=UITextFieldViewModeAlways;
|
||||
self.loginPhoneNumberTextField.layer.cornerRadius=6;
|
||||
if (@available(iOS 13.0, *)){//iOS13之后,设置颜色的方便变更
|
||||
|
||||
}else{
|
||||
[self.loginPhoneNumberTextField setValue:[UIColor colorWithRed:146.0/255.0 green:146.0/255.0 blue:146.0/255.0 alpha:1] forKeyPath:@"_placeholderLabel.textColor"];
|
||||
}
|
||||
|
||||
UIView*passView=[[UIView alloc]initWithFrame:CGRectMake(0,30, 50, 30)];
|
||||
UIImageView*passIcon=[[UIImageView alloc]initWithFrame:CGRectMake(15,5, 17, 20)];
|
||||
@@ -196,7 +204,11 @@
|
||||
self.loginPasswordTextField.leftView=passView;
|
||||
self.loginPasswordTextField.leftViewMode=UITextFieldViewModeAlways;
|
||||
self.loginPasswordTextField.layer.cornerRadius=6;
|
||||
if (@available(iOS 13.0, *)){//iOS13之后,设置颜色的方便变更
|
||||
|
||||
}else{
|
||||
[self.loginPasswordTextField setValue:[UIColor colorWithRed:146.0/255.0 green:146.0/255.0 blue:146.0/255.0 alpha:1] forKeyPath:@"_placeholderLabel.textColor"];
|
||||
}
|
||||
// 设置用户头像
|
||||
// int i = (arc4random()%11) + 1;// 设置随机头像
|
||||
// self.userIconImg.image=[UIImage imageNamed:[NSString stringWithFormat:@"acount%d.png",i]];
|
||||
|
||||
Reference in New Issue
Block a user