ios - Swift Master-Detail Dismiss Popover -
In Xcode6 beta 4, do not dismiss template popover created for master-detail view when you click on extension master Does the item in TableView have someone do it with Swift in Beta 4?
In previous versions of Xcode6, the template included 2 ways to control popups, but they are not working for me in Beta 4.
func splitViewController (splitController: UISplitViewController, willHideViewController ViewController: UIViewController, withBarButtonItem barButtonItem: UIBarButtonItem, forPopoverController popoverController: UIPopoverController) {barButtonItem.title = "Master" // NSLocalizedString (@ "Master", @ "Master") self.navigationItem.setLeftBarButtonItem (barButtonItem, animated: true) self.navigationItem.setRightBarButtonItem (UIBarButtonItem (barButtonSystemItem: UIBarButtonSystemItem.Action, Target: Zero, Action: Zero), Animated: true) self.masterPopoverController = popoverController} splitViewController (SplitController function: UISplitViewController, willShowViewController ViewController: UIViewController, invalidatingBarButtonItem barButtonItem: UIBarButtonItem) {// when called again Area is shown in split view, Amanyltin button and G popover controller. Self.navigationItem.setLeftBarButtonItem (zero, animated: true) self.masterPowerController = Nil}
This will dismiss the popover from DetailViewController:
Touch the override funk (touch: NSSet !, with Event Event: UIEvent!) {Self.masterPopoverController! .dismissPopoverAnimated (true)}
Comments
Post a Comment