How can I update the data after the Model Segue is dismissed? As I think the best method is using notifications, but I do not know how to set up notification in the main scene when the model seagull is closed.
I have a "logged in" modal view, when the user clicks the "don" modal view, then dismissed, the main view reads new data from NSUserDefaults and displays new data .
@IBAction func doneLicked (From: AnyObject) {Settings.synchronize () self.dismissViewControllerAnimated (true, perfection: zero)}
If you are using storyboard then open segues. Then you just use segue.sourceViewController
and get the data that you need - has now been dismissed - Model View Controller In your case, you can see any data from the Model View Controller There is no need to, so open whatever you want SEGUE IBAction-method
A guide:
No comments:
Post a Comment