直接跳转淘宝
This commit is contained in:
parent
22673fef3d
commit
cb537f1949
|
|
@ -15813,7 +15813,7 @@
|
|||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 2;
|
||||
CURRENT_PROJECT_VERSION = 3;
|
||||
DEVELOPMENT_TEAM = WFX8GD5HFX;
|
||||
ENABLE_BITCODE = NO;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
|
|
@ -15931,7 +15931,7 @@
|
|||
CODE_SIGN_IDENTITY = "Apple Development";
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 2;
|
||||
CURRENT_PROJECT_VERSION = 3;
|
||||
DEVELOPMENT_TEAM = WFX8GD5HFX;
|
||||
ENABLE_BITCODE = NO;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
|
|
|
|||
|
|
@ -97,22 +97,14 @@ Strong UILabel *subTitleLabel;
|
|||
|
||||
|
||||
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"提示" message:@"需要定位权限才能获取wifi信息给设备配网,来添加设备" preferredStyle:UIAlertControllerStyleAlert];
|
||||
UIAlertAction *ok = [UIAlertAction actionWithTitle:@"打开定位" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
|
||||
NSURL * url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
|
||||
|
||||
if([[UIApplication sharedApplication] canOpenURL:url]) {
|
||||
if (@available(iOS 10.0, *)) {
|
||||
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
|
||||
}else {
|
||||
[[UIApplication sharedApplication] openURL:url];
|
||||
}
|
||||
}
|
||||
UIAlertAction *ok = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
|
||||
[self.navigationController popViewControllerAnimated:YES];
|
||||
}];
|
||||
UIAlertAction *cancel = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * _Nonnull action) {
|
||||
[self.navigationController popViewControllerAnimated:YES];
|
||||
}];
|
||||
[alert addAction:ok];
|
||||
[alert addAction:cancel];
|
||||
//[alert addAction:cancel];
|
||||
|
||||
[self presentViewController:alert animated:YES completion:nil];
|
||||
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ UIGestureRecognizerDelegate>
|
|||
}];
|
||||
[alert addAction:cancel];
|
||||
[alert addAction:ok];
|
||||
[self presentViewController:alert animated:YES completion:nil];
|
||||
// [self presentViewController:alert animated:YES completion:nil];
|
||||
}
|
||||
#pragma mark - 定位成功
|
||||
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations{
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@
|
|||
[alert addAction:cancel];
|
||||
[alert addAction:ok];
|
||||
|
||||
[self.window.rootViewController presentViewController:alert animated:YES completion:nil];
|
||||
// [self.window.rootViewController presentViewController:alert animated:YES completion:nil];
|
||||
}
|
||||
#pragma mark - 定位成功
|
||||
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations{
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@
|
|||
}];
|
||||
[alert addAction:cancel];
|
||||
[alert addAction:ok];
|
||||
[self presentViewController:alert animated:YES completion:nil];
|
||||
// [self presentViewController:alert animated:YES completion:nil];
|
||||
}
|
||||
#pragma mark - 定位成功
|
||||
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations{
|
||||
|
|
|
|||
|
|
@ -188,7 +188,7 @@
|
|||
}];
|
||||
[alert addAction:cancel];
|
||||
[alert addAction:ok];
|
||||
[self presentViewController:alert animated:YES completion:nil];
|
||||
//[self presentViewController:alert animated:YES completion:nil];
|
||||
}
|
||||
#pragma mark - 定位成功
|
||||
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations{
|
||||
|
|
|
|||
|
|
@ -564,7 +564,7 @@
|
|||
}];
|
||||
[alert addAction:cancel];
|
||||
[alert addAction:ok];
|
||||
[self presentViewController:alert animated:YES completion:nil];
|
||||
// [self presentViewController:alert animated:YES completion:nil];
|
||||
}
|
||||
#pragma mark - 定位成功
|
||||
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations{
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ extern BOOL formLogIn;
|
|||
}];
|
||||
[alert addAction:cancel];
|
||||
[alert addAction:ok];
|
||||
[self presentViewController:alert animated:YES completion:nil];
|
||||
// [self presentViewController:alert animated:YES completion:nil];
|
||||
}
|
||||
#pragma mark - 定位成功
|
||||
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations{
|
||||
|
|
|
|||
Loading…
Reference in New Issue