File tree 1 file changed +11
-2
lines changed
GCPrePermissions/HJQPrePermissions
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -873,8 +873,10 @@ - (void) locationManager:(CLLocationManager *)manager didChangeAuthorizationStat
873
873
- (void )showNoAutherOrRefuseAutherWithMessage : (NSString *)message
874
874
{
875
875
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO (@" 9.0" )) {
876
- NSURL *url=[NSURL URLWithString: UIApplicationOpenSettingsURLString];
877
- [[UIApplication sharedApplication ]openURL:url];
876
+
877
+ UIAlertView *enterSettings = [[UIAlertView alloc ]initWithTitle:@" 提示" message: message delegate: self cancelButtonTitle: @" 暂不" otherButtonTitles: @" 设置" , nil ];
878
+ enterSettings.tag = 100 ;
879
+ [enterSettings show ];
878
880
}else {
879
881
880
882
UIAlertView *photoAlertviews = [[UIAlertView alloc ] initWithTitle: @" 提示" message: message delegate: self cancelButtonTitle: @" 确定" otherButtonTitles: nil ];
@@ -945,6 +947,13 @@ - (void) alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)butt
945
947
// User granted access, now try to trigger the real location access
946
948
// 暂且放放,等待完善GPS授权
947
949
}
950
+ }else if (alertView.tag == 100 ){
951
+ if (buttonIndex == 1 ) {
952
+ NSURL *url=[NSURL URLWithString: UIApplicationOpenSettingsURLString];
953
+ [[UIApplication sharedApplication ]openURL:url];
954
+ }else {
955
+
956
+ }
948
957
}
949
958
}
950
959
You can’t perform that action at this time.
0 commit comments