Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jamonek/3816c21e7eb9bdcf87e9 to your computer and use it in GitHub Desktop.
Save Jamonek/3816c21e7eb9bdcf87e9 to your computer and use it in GitHub Desktop.
Popover error
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
let popoverViewController = segue.destinationViewController as UIViewController
popoverViewController.modalPresentationStyle = UIModalPresentationStyle.Popover
popoverViewController.popoverPresentationController!.delegate = self
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment