Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (18)

Sign In or Sign Up now to post a comment!
  • I would like to do the same as you did but I have Xcode 4.2 and tabbar template is a bit different from this one cause I dont have MainWindow.xib

    Could you tell me please, how can I add navigation controller in xcode 4.2 ?

    Thanks!

  • @KaktusFilms I had the same problem, you figured it out yet?

  • @casperbyc

    Yeah, here it is:

    Go to your app delegate and add this:

     UIViewController *viewController1 = [[FirstViewController alloc] initWithNibName:@"FirstViewCon­troller" bundle:nil];

    UINavigationController *navigationController = [[UINavigationController new] initWithRootViewController:vie­wController1];

    navigationController.viewContr­ollers = [NSArray arrayWithObject:viewController­1];

    And thats it! So how you see, I populate navigationController with viewController1 and it works perfectly!

  • Hey man this is sweet thanks. I was trying to do this in one of the youtube oreilly video's and ran into problems. You think you could extend this video by creating some sample tabel cells and selecting one taking us to another view?

    Thanks

    OT

    College Student

  • @clockmonster786 same issue here...

  • how to start a navigation controller from a button, in the main view..not tab bar...main view - button--nav controller ??????? tnks

  • this is the first time i do write a comment on a video but you earn it totally . i didnt know this could be done that fucking easy!! thanx dude!!

  • Thanks a lot. It gives my a big hand. :)

  • Awesome tutorial man. I was wondering if you can help me out with something -

    I have a Tab bar controller and Navigation controller just like you have. And what I want to do is, in the first tab, have a button (in the view controller), and when this button is pressed, I get another view, BUT with the same Tab bar and navigation controller. Can you please help me out? A video tutorial would be AWESOME. But snippets of code or some tips would be also very appreciated. Thanks!

  • @richardpniewski

    Can I ask why you wouldn't want to put this button on the Navigation Bar? I'm not sure exactly what you mean by "same navigation controller".

  • @theAppCodeBlog Its cool, that exactly what I ended up doing :) Thanks anyway.

    

  • @richardpniewski

    Awesome good luck with it.

  • @theAppCodeBlog Thanks man.

  • Thanks!

    I was suffering for the last day because of the changes in Xcode 4. I had no idea it was that simple.

  • where did u get firstview controller from???????

  • @mulcslo

    FirstViewController was created automatically by Xcode when I selected Tab Bar App template at the beginning.

  • So happy for an updated video on this topic! There are so many tutorials on this from like 30 years ago! :-P

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more