Skip to content

Commit

Permalink
Merge pull request ScottLogic#3 from zoonooz/master
Browse files Browse the repository at this point in the history
Fix wrong popover value
  • Loading branch information
sammyd committed Sep 2, 2014
2 parents e49ce32 + d024aeb commit 2764983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 21-alerts-and-popovers/21-alerts-and-popovers.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ separate code paths for iPhone and iPad, they can be used on every device. A new
class `UIPopoverPresentationController` has been introduced, and this controls
the presentation of a view controller in a popover style. You don't create one
of these directly, but instead one is created for you by UIKit when the
`modalPresentationStyle` property on `UIViewController` is set to `.Modal`.
`modalPresentationStyle` property on `UIViewController` is set to `.Popover`.

let popoverVC = storyboard.instantiateViewControllerWithIdentifier("codePopover") as UIViewController
popoverVC.modalPresentationStyle = .Popover
Expand Down

0 comments on commit 2764983

Please sign in to comment.