Home > OS >  IOS Expected identifier problem when changed open url method to new one
IOS Expected identifier problem when changed open url method to new one

Time:12-22

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");}}
     ];
  • Related