Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Isorinu'

macrumors newbie
Original poster
Hello,
I have a tabBarController and a navigationController working together. I have 15 tabs so the "More" button appears. I have the option to edit the order of the tabBar items.after i press the "Edit" button the modalViewcontroller appears which has a "Done" button.

I can't think of a way to put an action on the "Done" button, in order to save into the NSUserDefaults my tab items new order...in order to keep it for the next time the app opens.

because i didn;t had a clue how to put an action on that button..or how to see if the "done" button is clicked..i always save my tab order in the
Code:
-(void) applicationWillTerminate:(UIApplication *) application
method in my app Delegate.

all my views, tabBar, navigation controllers are made by code..not visually.. and the edit view of the tab bar appears automatically...i managed to put the style on it..but nothing else...

Thank you in advance
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.