iOS10 SFSafariViewController not working when alpha is set to 0
问题 I'm using SFSafariViewController to grab user's cookie in my app. Here's is my code: SFSafariViewController *safari = [[SFSafariViewController alloc]initWithURL:[NSURL URLWithString:referrerUrl] entersReaderIfAvailable:NO]; safari.delegate = self; safari.modalPresentationStyle = UIModalPresentationOverCurrentContext; safari.view.alpha = 0.0; safari.view.hidden = true; [self dismissViewControllerAnimated:false completion:nil]; NSLog(@"[referrerService - StoreViewController] presenting safari