I don't understand why I got this error (see attached screen). Thanks, Amir error
I have chaneged old open url to new one
case AVAuthorizationStatusDenied:
{
[[[[[[ [ [ [UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]options:@{} completionHandler:^(BOOL success) {if (success) {NSLog(@"Opened url");}}
] ] ]]]]]];
break;
}
default:
break;
}
CodePudding user response:
Why all the [[[[ ... try this:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]options:@{} completionHandler:^(BOOL success) {if (success) {NSLog(@"Opened url");}}
];