Saving tab bar order

Hi there, i have got a problem. I have created a application using tab bar template. I now have over 6 tabs, which creates the "more" button. From there I can go to the edit window, and there i can re-arrange my tabs. The problem is that when the user re-arranges the tabs, and after closes the app by tapping the home-button twice and closing background running apps, all the tabs go back to default when my app launches again.
I guess i will have to put something in under the "whenAppTerminates" in the appdelegate, but i dunno what...
Any solutions?
Cheers

Hi there, i have got a problem. I have created a application using tab bar template. I now have over 6 tabs, which creates the "more" button. From there I can go to the edit window, and there i can re-arrange my tabs. The problem is that when the user re-arranges the tabs, and after closes the app by tapping the home-button twice and closing background running apps, all the tabs go back to default when my app launches again.
I guess i will have to put something in under the "whenAppTerminates" in the appdelegate, but i dunno what...
Any solutions?
Cheers

Similar Messages

  • How Do I Save Tab Bar Order When Customized? Using Storyboards.

    Anyone out there who could really explain to my how i save the order of the tab bars when the application terminates, making them stay in the order when the application is re-launched? I have been all around the web for this one, and I can´t find a explenation that really explains how to do it. It would be really awsome if someone out there could help me with how I could solve this, really explaining where the different code should go. Keep in mind that i´m using storyboards!
    Cheers

    That URL is part of a support thread; I'm not sure why you are getting that error.
    Google's search preference ([http://support.google.com/websearch/bin/answer.py?hl=en&answer=425 Support Answer 425]) relates to what happens when you click a link in your search results page: whether it loads in the same tab or a new tab (or new window, if you don't divert new windows to tabs). So that's useful, but it doesn't address your request.
    The short term workarounds are:
    * If you usually search by pressing Enter, hold the Alt key to launch the search in a new tab -- setting the preference '''browser.search.openintab''' makes the Alt key unnecessary
    * If you usually search by clicking the magnifying glass icon, hold the Ctrl key to launch the search in a new tab or "middle-click" the button -- as far as I can tell, there is no preference to do this automatically
    Some tab-related add-ons might solve this problem. I saw one blog post saying Tab Mix Plus will change the magnifying glass behavior to always open in a new tab.

  • Persist Customized Tab Bar

    Hi there, i have been all around the web for this, but i just cannot find a solution that works...
    I am currently using storyboards in xcode and I´m working on a project using tab bars. I have over 5 tabs atm and i therefore get the more button, and the user will also be enabled to customize the tab bar order. What I´m windering about is: How do i make the user-customized tab bar order to save when the application terminates. So when the application launches again, the tab bar would be just as the user left it.
    As I have said, I have been all around the web for this one. Most of the explenations on this problem are really old, 2008 - 2009. It would be really awsome if someone out there really could explain how to do this, and actually explain where to type in the different code.
    Cheers

    Tabs relate to the web pages. It is not logical for the tabs to include the address bar and toolbars. This is another example of the triumph of form over function. It should not be necessary to install plugins or fiddle with styles to make Firefox useable.
    Have you noticed how it seems to be morphing into Chrome?

  • Tab Bar Application save order

    Hi,
    I am creating a Tab Bar application with 8 Tabs. As usual, at the fith tab, the More appears. When the user goes there, he/she can modify the order of tab bars, as he/she wants.
    My problem is, that I want to save the order of these tabs, and display it in the same order, when the user opens the app again.
    I am using storyboard, so the views are created, and hooked up over there.
    The AppDelegate looks like this:
    //  AppDelegate.h
    #import <UIKit/UIKit.h>
    @interface AppDelegate : UIResponder <UIApplicationDelegate, UITabBarControllerDelegate>
    @property (strong, nonatomic) UIWindow *window;
    @end
    //  AppDelegate.m
    #import "AppDelegate.h"
    @interface AppDelegate()
    @property (nonatomic, retain) UITabBarController *mainTabBarController;
    @end
    @implementation AppDelegate
    @synthesize window = _window;
    @synthesize mainTabBarController;
    - (void)customizeInterface
        UIImage* tabBarBackground = [UIImage imageNamed:@"tabbar.png"];
        [[UITabBar appearance] setBackgroundImage:tabBarBackground];
    #pragma mark UINavigationControllerDelegate
    - (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
        [[NSUserDefaults standardUserDefaults] setInteger:mainTabBarController.selectedIndex forKey:@"mainTabBarControllerSelectedIndex"];
    - (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
        [[NSUserDefaults standardUserDefaults] setInteger:mainTabBarController.selectedIndex forKey:@"mainTabBarControllerSelectedIndex"];
    #pragma mark UITabBarControllerDelegate
    - (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController {
        [[NSUserDefaults standardUserDefaults] setInteger:tabBarController.selectedIndex forKey:@"mainTabBarControllerSelectedIndex"];
    #pragma mark UITabBarControllerDelegate
    - (void)tabBarController:(UITabBarController *)tabBarController didEndCustomizingViewControllers:(NSArray *)viewControllers changed:(BOOL)changed {
        int count = mainTabBarController.viewControllers.count;
        NSMutableArray *savedTabsOrderArray = [[NSMutableArray alloc] initWithCapacity:count];
        for (int i = 0; i < count; i ++) {
            [savedTabsOrderArray addObject:[NSNumber numberWithInt:[[[mainTabBarController.viewControllers objectAtIndex:i] tabBarItem] tag]]];
        [[NSUserDefaults standardUserDefaults] setObject:[NSArray arrayWithArray:savedTabsOrderArray] forKey:@"tabBarTabsOrder"];
        [[NSUserDefaults standardUserDefaults] synchronize];
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
        [self customizeInterface];
        NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
        mainTabBarController.delegate = self;
        int count = mainTabBarController.viewControllers.count;
        NSArray *savedTabsOrderArray = [defaults arrayForKey:@"tabBarTabsOrder"];
        if (savedTabsOrderArray.count == count) {
            BOOL needsReordering = NO;
            NSMutableDictionary *tabsOrderDictionary = [[NSMutableDictionary alloc] initWithCapacity:count];
            for (int i = 0; i < count; i ++) {
                NSNumber *tag = [[NSNumber alloc] initWithInt:[[[mainTabBarController.viewControllers objectAtIndex:i] tabBarItem] tag]];
                [tabsOrderDictionary setObject:[NSNumber numberWithInt:i] forKey:[tag stringValue]];
                if (!needsReordering && ![(NSNumber *)[savedTabsOrderArray objectAtIndex:i] isEqualToNumber:tag]) {
                    needsReordering = YES;
            if (needsReordering) {
                NSMutableArray *tabsViewControllers = [[NSMutableArray alloc] initWithCapacity:count];
                for (int i = 0; i < count; i ++) {
                    [tabsViewControllers addObject:[mainTabBarController.viewControllers objectAtIndex:
                                                    [(NSNumber *)[tabsOrderDictionary objectForKey:
                                                                  [(NSNumber *)[savedTabsOrderArray objectAtIndex:i] stringValue]] intValue]]];
                mainTabBarController.viewControllers = [NSArray arrayWithArray:tabsViewControllers];
        // Override point for customization after application launch.
        return YES;
    - (void)applicationWillTerminate:(UIApplication *)application {
        [[NSUserDefaults standardUserDefaults] synchronize];
    - (void)applicationWillResignActive:(UIApplication *)application
         Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
         Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
    - (void)applicationDidEnterBackground:(UIApplication *)application
         Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
         If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
    - (void)applicationWillEnterForeground:(UIApplication *)application
         Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
    - (void)applicationDidBecomeActive:(UIApplication *)application
         Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
    - (void)dealloc {
    @end
    This is where I am currently, and it is not working.
    I checked the .plist file, and there is no entry called tabBarTabsOrder, so it is not evan saving it.
    I'm really confused at this point, got no idea what to do.
    Does anyone know, ehat's the problem? What am I missing?
    Thank you very much in advance!
    Daniel

    This works in a project created from the Tabbed Application template. I set the tag on each TabBarItem in the storyboard.
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
        UITabBarController *tabBarController = (UITabBarController *)self.window.rootViewController;
        tabBarController.delegate = self;  // couldn't figure out how to do this in the storyboard
        [self orderTabBar:tabBarController];
        return YES;
    - (void)orderTabBar:(UITabBarController *)tabBarController {
        NSArray *tabsOrderArray = [NSUserDefaults.standardUserDefaults arrayForKey:@"tabBarTabsOrder"];
        if (tabsOrderArray) {
            NSMutableArray *orderedViewControllers = [[NSMutableArray alloc] initWithCapacity:tabBarController.viewControllers.count];
            for (NSNumber *tabOrder in tabsOrderArray) {
                [orderedViewControllers addObject:[self viewControllerForTabBar:tabBarController TabBarItemTag:tabOrder.integerValue]];
            tabBarController.viewControllers = orderedViewControllers;
    - (UIViewController *)viewControllerForTabBar:(UITabBarController *)tabBarController TabBarItemTag:(NSInteger)tag {
        for (UIViewController *viewController in tabBarController.viewControllers)
            if (viewController.tabBarItem.tag == tag)
                return viewController;
        return nil;
    - (void)tabBarController:(UITabBarController *)tabBarController didEndCustomizingViewControllers:(NSArray *)viewControllers changed:(BOOL)changed {
        NSMutableArray *tabsOrderArray = [[NSMutableArray alloc] initWithCapacity:tabBarController.viewControllers.count];
        for (UIViewController *viewController in viewControllers) {
            [tabsOrderArray addObject:[NSNumber numberWithInt:viewController.tabBarItem.tag]];
        [NSUserDefaults.standardUserDefaults setObject:[NSArray arrayWithArray:tabsOrderArray] forKey:@"tabBarTabsOrder"];
        [NSUserDefaults.standardUserDefaults synchronize];

  • I do not have the 'Advanced' tab on the menu bar. I am trying to change ringtone on my iphone 4s. Have done the following: Right cick on song, entered the start and stop times, but unable to proceed as need 'Advanced' tab in order to change to option.

    I do not have the 'Advanced' tab on the menu bar. I am trying to change ringtone on my iphone 4s. Have done the following: Right cick on song, entered the start and stop times, but unable to proceed as need 'Advanced' tab in order to change to option.

    You don't need to upgrade your software.  But if you're struggling with Spry, IMO you should cut your losses and switch to something better for the longrun.
    If you have a budget to work with, I highly recommend Project Seven's Pop-Menu Magic 3.  It's easy to use in DW CS4, 5, 6 or CC.  More importantly, it's bullet proof and works in all devices. 
    Pop-Menu  Magic3 by PVII (commercial DW extension)
    http://www.projectseven.com/products/menusystems/pmm3/index.htm
    If you don't have a budget to work with, you can roll your own menus with jQuery plugins.  A bit more effort on your part, but they perform better than Spry.
    jQuery Superfish
    http://users.tpg.com.au/j_birch/plugins/superfish/
    jQuery MegaMenu2
    DEMO:
    http://www.geektantra.com/projects/jquery-megamenu-2/
    DOWNLOAD:
    http://code.google.com/p/jquery-megamenu/
    Nancy O.

  • Front page opens works shortly freezes. only yellow green buttons work. I click yellow to minimize normal top bar menu appears I choose new page, opens works normally. The restart saved tabs does not work on that first page.

    front page opens works shortly freezes.
    only yellow green buttons work. I click yellow to minimize normal top bar menu appears I choose new page, opens works normally.
    The restart saved tabs does not work on that first page.

    Hi @prdstudio3 ,
    Thank you for visiting the HP Support Forums. The Serial Number needed to be removed from your Post. This is From our Rules of Participation:
    Protect privacy - yours and others'. Don't share anything about yourself that you would not want to see on a road-side billboard. Don't post contact or other personal information-your own or anyone else's-or any content that you receive in one-to-one communications without the author's consent. For example, don’t post your computer’s serial # or contact information publicly, and do not allow someone you don’t know to remotely take control of your computer.
    If you need people to contact you directly, either ask them to send you a private message or subscribe to the thread so you will be notified when there are replies. You may also click on your name anywhere in the forum and you will be taken to your profile page, where you can find a list of threads you have participated in.
    Sharing personal email addresses, telephone numbers, and last names is not allowed for your safety. If you have any questions feel free to send me a private message in reply.
    Thank you
    George
    I work for HP

  • HT1947 Where do I find Remote on the "tab bar" in iTunes in order to punch in my 4 digit code from iPhone (to pair and home share)?

    I've already configured iTunes to share libraries at home...but I can't seem to find where to punch in the 4 digit code that is provided from my iPhone.To be honest, I am extremely frustrated at this point! Please give me an answer that will tell me WHERE exactly this "TAB BAR" is located. Of course I habve the app Remote...but where on earth do I find this to enter a code?!! Getting very annoyed.
    I've seen other comments and questions exactly like mine whilst Googling for answers...but they are all answered with jibberish and cockiness. No real detail. All in all--there are NO answers and I am not a happy camper.
    Thank you for your time.
    ~LI

    Hi, if you have switched on your 'Home sharing' on both itunes and your device, your device should show up in your itunes side bar and below the list of contents on ur device you will find the remote icon. click it and it will prompt you to enter the passcode. If you can't find this then
    Here's what to check for:
    Lunch itunes
    Go to Edit
    Click preferences
    on the General Tab, you'll noticed that 'Shared libraries' isnt checked. that's fine you will fix this.
    Now click on Sharing Tab if u have a message about Bonjour service not running then all you need do is enable Bonjour Service on you computer.
    For Windows 8 users:
    Right click 'Computer'
    Click on 'Manage'
    Double click 'Services and applications'
    Double click 'Services'. This will display a list of background services/processes running on ur PC.
    Scroll down to 'Bonjour Service' and right click.
    Click properties. In the pop up box, change the start up type to 'AUTOMATIC'
    click Start
    Apply
    close the box
    restart pc
    lunch itunes
    connect itunes and device to same wifi
    Do the 'Home Sharing' thing again and you will find all as i explained in my first paragraph.
    Sorry I have no idea where Services is located in mac or what it is called.
    Thank you.

  • Why is it that when I set the preference to always show the tab bar, it refuses to stay checked after I quit Firefox and restart it?

    Using Mac OSX10.6.7 and FF 4.0.1, I'm having a problem with the preference to always show the tab bar. I want it to always show. I check this in the Preferences under the "tab" window, and everything is fine until I quit FF and when I restart FF the tab bar is gone again. I go into preferences, and that option is now unchecked. How can I fix this so that my preference is saved?

    That hasn't helped the last ten times I tried. I posted before. I deleted the preferences file, I tried changing the preferences file, I went into about:config and changed the autoHide preference there. No dice. Firefox is not saving my preference for that one thing.

  • Cost error message at the point of saving a Process Order

    Dear Experts,
    Raw Materials R458 and R467 are processed to produce semifinished material S229
    While creating a Process Order for material S229, at the point of saving the process order I get the following error messages:
    1 No cost element segment exists for 21501000 on 07.07.2011
    2 Cost Element Group 2950 does not exist
    At the point of saving, cost gets calculated by the system.
    Which account(s) is this cost posted to?
    Is it the ''Offsetting entry for inventory posting'' account  of the Raw materials R458 and R467? or
    Is it the ''Offsetting entry for inventory posting'' account  of the Semi material S229? or
    Is it the Cost Center to which the Resource is assigned to?
    How can I view this calculated cost value within the particular account?

    Hi,
    1. For error No cost element segment exists for 21501000 on 07.07.2011
    Can you check whether you have maintained valuation type in the accounting tab? Also have you maintained costing tab? If you have maintained then go to OBYC that is in GBB with account key VBR GL may have not maintained. Ask your FICO guy to check this.
    2. For error Cost Element Group 2950 does not exist
    Go to below link
    Cost element group does not exist. S_ALR_87013620 report
    Regards / US

  • I opened my computer and the whole top only shows web search, I can not find my bookmarks and I tried reloading firefox and still nothing but tab bar

    Question
    I opened my computer and the whole top only shows web search, I can not find my bookmarks and I tried reloading firefox and still nothing but tab bar. Tried f10, alt, nothing! Can I reload an old firefox? There is no firefox logo at top. When I rt click at top I see hide toolbar and leave full screen. To the right there is only a home sign. How can I get my BOOKMARKS ??????? I so need them and hate what ever this is that now shows up on firefox.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • I have lost the tabs on the top where bookmarks are, and all my saved tabs. The screen is very big and the icons on the bottom are gone as well.

    I noticed the tab on top where it says file edit bookmarks etc was missing. There was a Firefox with a down facing arrow and I clicked on it to see if I could find my bookmark tabs. I don't know what I pushed but the 2 other saved tabs under the first one went away. also the icons on the bottom of the screen also went away. I am very computer illiterate and don't know what I did or if I can even get it back.

    Make sure that you do not run Firefox in full screen mode (press F11 or Fn + F11 to toggle; Mac: command+Shift+F).<br />
    If you are in full screen mode then hover the mouse to the top to make the Navigation Toolbar and Tab bar appear.<br />
    You can click the Maximize button at the top right to leave full screen mode or right click empty space on a toolbar and use "Exit Full Screen Mode" or press F11.<br />

  • Ipad tab bar/multi views app

    i want to develop an ipad app with a main screen contains a tab bar control in the bottom, this tab contains 5 sections each one open a new view
    sections are (home,P1,P2,V1,V2,info)
    home -> return to the main screen
    P1->open a pdf file with (back-next) feature
    p2->open images slide-show with (back-next) feature
    V1->open a video from youtube
    V2->open a video from resources folder(saved with the app)
    how can i implement these features ?
    which type of app should i use? (window based OR view based)?why?
    should i add a new view controller for each button in the tab bar?
    how can i open a pdf file?any sample code available ?
    ( i found a pdf sample code but it opens just one page)
    any slide show sample code ?
    how can i call a view controller based on the user selection?
    i highly appreciate any help

    I had trouble getting an iAd to work when using IB as well. I ended up adding it programmatically like this:
    self.adView = [[ADBannerView alloc] initWithFrame:CGRectMake(0,412,320,50)];
    adView.currentContentSizeIdentifier = ADBannerContentSizeIdentifier320x50;
    adView.delegate = self;
    [self.view addSubview:adView];
    in the - (void)viewDidLoad of my view controller.
    Hope that helps.
    -Phil

  • Saving of sales order

    hi gurus
    i am going through a scenario where i need to restrict saving of sales order if there is no materials in the stock, as the normal process the sales order gets saved even if there is no stock. so the point is no sales order should be saved if there is no stock in the plant. how to do that?
    regards
    subhrangshu

    Hi
    This is possible through simple configuration
    If you want the sales order should not get saved if the confirmed qty for a line item is 0 that is no stock
    Then in the incompletion procedure for schedule line category
    add the field BMNEG ( confirmed qty ) from the table VBEP
    That is your schedule line incompletion procedure that is 30 or 31 add this add the field BMNEG from the table VBEP
    Assign this in completion procedure to your schedule line category
    More orver for your order type config VOV8 check the tick box incomplete messages in the transaction flow tab
    With this settings when a sales order has a line item with confirmed qty is 0 then system considers this order as incomplete and will not save the order
    Pls update me whether this input  has helped you
    Your requirement is also possible through plenty of userexits but i request you to handle it through  configuration
    Regards
    Raja

  • Column order is changed in criteria tab ,result tab column order unchanged

    I created a report in sample database with these columns in 11.1.1.6
    1- C50 Region 2 D1 Office, 3 P1 Product 4 1-Revenue and 5 C1 Customer Name
    Hit Results and I can see the result in this order.
    If I change column order in result tab to say 1,5,2,3,4, result tab table view is updated. Now if I go back to criteria tab, column order remains the same ( 1,2,3,4,5)
    This may be expected functionality in 11.1.1.6 but was not the case in 10g. This may be due to changes allowed in html layer.
    Now if I go back to criteria tab and reorder columns (say 1,3,2,4,5) and then click result, result tab columns are not ordered as set here. Result tab continues to show 1,2,3,4,5
    I saved the report with order 1,3,2,4,5 and log back in, order remains 1,2,3,45/ I believe if I restart presentation services, it will be come OK. The only way is to create a new report that I know now other than restarting presentation service.
    Question
    Have you observed this?
    If yes, what is the solution, how can result tab refresh with the order of the columns in criteria tab?
    Bhupendra

    Hi,
    In OBI 11g,the column order in the criteria tab and the results tab are not coupled to each other.
    When you create the report for the first time, both are in sync. If you need to reorder the columns, goto result tab and click on edit report, in the columns and measures section of the report, reorder the columns the way you desire.
    Save the report and the report should have the columns in the order you have set.
    P.S : this is not a bug !
    Thanks,
    Vineeth

  • I have around 400 tabs that I have bookmarked in the Tab bar, below the Browser search bar. How can I effectively and efficiently consolidate these tabs.

    I am running Firefox 4.0 for desktop, running Windows XP 32bit.
    I have looked at putting all the similar tabs into a bookmark folder and saving it but this would require me to individually open up all my tabs, from which I could start to organise them better. Is there a more efficient and effective way of solving my problem? If I have to follow this method, will deleting the tabs after they've been put into bookmark folders, affect the storage of these tabs?
    Thanks.

    You can use "Bookmark All Tabs" to place those tabs in one bookmarks folder.
    You can open all links in a folder by middle-clicking this folder.
    * "Bookmark All Tabs" can be accessed via the right-click context menu of a tab on the tab bar.

Maybe you are looking for