Segue exit action when using default <Settings button
Segue exit action when using default <Settings button
- Subject: Segue exit action when using default <Settings button
- From: Steve Mills <email@hidden>
- Date: Sat, 28 Mar 2015 01:53:47 -0500
I have a Settings scene, much like the iOS Settings app, with a table view. Each item segues to a unique scene via the show action. Each subscene then automatically gets a <Settings button to go back to the main Settings scene. When exiting each subscene, I want that controller's prepareForSegue:sender: to be called so I can save the settings to prefs at that point.
All the tutorials for handling unwiding that I can find add specific Unwind or Go Back buttons to the scene's view, rather than using the automatic < Settings button. How can I set up the unwind action for these automatic <Settings buttons?
Or should I instead just have all of the controls in each subscene just set the pref right when they're changed instead of waiting to unwind? That doesn't seem as efficient, plus it triggers my NSUserDefaultsDidChangeNotification back in the main app view to be called every time the user tries a different setting before deciding on a final setting. Or, go with OK and Cancel buttons?
--
Steve Mills
Drummer, Mac geek
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden