Change the initial tab view.

I have a tab bar app that I am making for my job and my boss wanted the the third tab item to come up when the app began instead of the first one. This is very easily implemented. In your appdelegate.m file

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    
    [[UIDevice currentDevice] setOrientation:UIInterfaceOrientationPortrait];
    // Add the tab bar controller’s view to the window and display.
    [window addSubview:tabBarController.view];
//Take this line this line and put it in your code.
        tabBarController.selectedIndex = 2;
       
    [window makeKeyAndVisible];

    return YES;
}
 

The important line is

tabBarController.selectedIndex = 2;

This line pragmatically changes the selectedIndex and there you go now your tab bar will show the third view on start up instead of the first.

This entry was posted in cocos2d. Bookmark the permalink.

12 Responses to Change the initial tab view.

  1. continuously i used to read smaller articles which also clear their motive,
    aand that is also happening with this article which I am reading now.

  2. Potentially you have made use of by getting the Crazy shirts Coupon Code merely to
    recognize that you can not utilize this cheaper it provides?

    Any person whom suppliers on the internet straightforward Crazy shirts Coupon Code would’ve
    expert this difficulty. These type of Crazy shirts Coupon Code will usually be really
    valued merely by web buyers taking into consideration that they make them come to be
    issues aside from expertise describing pertinent profits.

    You can avoid basically any sort of problems along with making use of
    a Crazy shirts Coupon Code needs to you know they will certainly
    to make critical strategies rather than they will.

    A great deal of the problems entirely eaten with the aid of customers contain:.

    Acquiring the done Crazy shirts Coupon Code:
    A lot of Crazy shirts Coupon Code make use of an event time-frame around
    that they could possibly halt utilized to obtain a much more
    budget-friendly cost or simply just useful method.
    With each other, an included individual instead back might obtain fortuitous using your
    Crazy shirts Coupon Code which include passed her termination day when your company have
    truly never ever deactivated this sort of reduction.

    Not necessarily taking a look at the Crazy shirts Coupon Code entirely.
    Prior to choosing to what specifically type of Crazy shirts Coupon Code should be taken advantage of
    any person efficiently can well aren’t thrilled to discovered discover the
    most from taking advantage of. You can not think virtually all Crazy shirts Coupon Code offer an established
    reduced.

    Dropping acquiring a certain Crazy shirts Coupon Code.
    On the various other hand, you could utilize software application applications keeping to the real Crazy shirts Coupon Code
    to make sure that you can utilize them despite the truth that crucial.

    When you are acquiring online, you could have a massive amount terrific offers
    of cash on a routine monthly basis utilizing the appropriate Crazy shirts Coupon Code.
    Getting this type of Crazy shirts Coupon Code could
    possibly not be uncomplicated. Need to be fact, you’re likely
    to be spending lots of impartial trying to find individuals Crazy shirts Coupon Code.

    You need to acknowledge using Crazy shirts Coupon Code in the accountable approach or possibly you carry out discover youself
    to acquire investing a much more substantial expenditure for any individual opportunities.
    It does not create just since to acknowledge an instead a lot of components being made effortlessly offered with a little asking
    expense as an outcome of Crazy shirts Coupon Code.

    Possibly you have utilized by obtaining the Crazy shirts Coupon Code only to acknowledge
    that you can not use this additional money-saving it offers?
    Since they make them come to be concerns as well as proficiency
    relating to pertinent profits, these type of Crazy shirts Coupon Code will
    frequently be quite valued merely by net customers.

    Obtaining the done Crazy shirts Coupon Code: Many Crazy shirts Coupon Code use an occasion time-frame across that they may quit used
    to get a more economical cost or merely simply useful method.
    Prior to preferring to exactly what particularly kind of Crazy shirts Coupon Code ought to be used any person well can well aren’t enjoyed discovered discover the most from making use of.

    Potentially you have made use of by getting the Crazy shirts Coupon Code just to recognize that you
    can not use this less expensive it gives? These kinds of Crazy shirts Coupon Code will typically be
    very valued simply by web customers thinking about that they make them
    wind up being problems in addition to knowledge referring to important earnings.

    Before choosing to what specifically type of Crazy shirts Coupon Code have to be used any
    individual efficiently can well aren’t delighted to learned discover the most from taking advantage of.
    When you are getting online, you can have a huge quantity fantastic bargains of money on a regular month-to-month basis making usage of
    the appropriate Crazy shirts Coupon Code.

    Potentially you have made use of by acquiring the Crazy shirts Coupon Code merely to identify that you can not use this less expensive it
    supplies? These kinds of Crazy shirts Coupon Code will often be quite
    valued simply by internet purchasers thinking about that they make them
    become issues in addition to skills referring to relevant earnings.

    Prior to picking to exactly what exactly kind
    of Crazy shirts Coupon Code should be made use of any kind of person successfully could
    well aren’t thrilled to discovered find the
    most from making usage of. When you are acquiring online,
    you can have a significant quantity terrific offers of money on a routine regular
    monthly basis making use of the appropriate Crazy shirts Coupon Code.

  3. to says:

    My family members always say that I am killing my time here at web, except I know I am
    getting experience everyday by reading thes nice articles or reviews.

  4. haircuts says:

    After shampooing the hair, remove all traces of it by utilizing lukewarm water.

    Proscar is also a brand name for the active ingredient Finasteride and
    is used to treat enlarged prostate rather than hair loss.
    The male hormone testosterone promotes or triggers hair growth.

  5. This excellent website certainly has all the information I needed concerning this subject and didn’t know who to ask.

  6. Candra says:

    It also showed that a biomarker for coronary heart complications was
    raised 14 per cent in unmarried gentlemen but was scarcely visible in single girls.

  7. live 48d says:

    The moment you receive the hang approximately of details,
    you will then be prepared to take care of the perfect
    poker players in actual life casinos. Action continues until there are no
    more raises and all bets have been called or poker hands have been folded.

    You will be astonished to know by the fact that you can even play online poker without depositing any money.
    Of course there is some sumptuous finger food to take care
    of your appetite.

  8. Ship My Car says:

    Make sure the quote includes these: origin (shipper’s door or port), destination (consignee’s door, port
    or unloading warehouse). Here again, abdominal
    muscles role of international car shipping company cannot be undermined
    anyways. And one of essentially the most important requirements
    in looking good is dressing properly.

  9. Thanks, This excellent website certainly has all the information I needed

  10. While there are many programs and services that are available to be purchased from
    reputable companies, you’ll see there are also many free keyword
    tools you can use to help with your research. To be listed in local directories is to be available and
    to be extant. Wordpot (Free) tells you how popular your keyword
    is and how often it is searched based on their 60 million-keyword (and growing) bank.

  11. Discoνer three issues about them thɑt you didn’t know.

    You are psуchics real (psychicreadings.buffalo.io) likely to wake up sеnsation sharper
    and more confident. It is a card of ⅾeath and reƄirtɦ, merely place, the death of the old and the beginning of the neᴡ.

  12. Hey There. I fojnd your blog using msn. Thaat is an extremely neatly written article.
    I will make sure to bookmark it andd return to read extr of your helpful info.
    Thank you for thee post. I’ll certainly return.

Leave a Reply to haircuts Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>