dimanche 2 novembre 2014

Xcode popover close event


Vote count:

0




Thought popovers will be easy :(


In storyboard create two ViewControllers: GraphicalViewController and SettingsViewContoller


On GraphicalViewController I put a button and make an action to SettingsViewController with segue: Popover.


I'm trying to implement method that will react on dismiss of popover:



class settingsViewController: UIViewController, UIPopoverPresentationControllerDelegate {

override func viewDidLoad() {
super.viewDidLoad()
if let popover = popoverPresentationController? {
println("delegate test") // Works
popover.delegate = self
}
}

func popoverPresentationControllerDidDismissPopover(popoverPresentationController: UIPopoverPresentationController) {
println("close test") // Doesn't work
}

}


What's wrong with didDismissPopover?



asked 20 secs ago







Xcode popover close event

Aucun commentaire:

Enregistrer un commentaire