Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • Getting the following warning: Warning: Attempt to present <SFSafariViewController: 0x7fc362c0fd90> on <mothership.ViewController: 0x7fc3649ba4c0> whose view is not in the window hierarchy! Commented Nov 19, 2015 at 17:09
  • 3
    Instead of calling that in viewDidLoad, call it in viewDidAppear: Commented Nov 19, 2015 at 17:11
  • Extra credit: is there a way to remove the 'done' link from the SFSafariViewController nav bar? Commented Nov 19, 2015 at 17:20
  • It sounds like you probably just want the SFSafariViewController to be your root view controller, instead of your currently-mostly-useless ViewController that has no job other than to present a different view controller. You can try some wizardry to remove the done button by accessing the navigationItem of your SFSafariViewController, possibly by subclassing it, but you're probably better off trying it as a root view controller, or just embedding a UIWebView. Commented Nov 19, 2015 at 18:10
  • 1
    Post for removing navbar: stackoverflow.com/questions/33813129/… Commented Nov 19, 2015 at 19:52