TabBarController.moreNavigationController action on 'done' button

Discussion in 'iPhone/iPad Programming' started by Isorinu', Nov 14, 2008.

  1. macrumors newbie

    Joined:
    Oct 16, 2008
    #1
    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
     

Share This Page