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?
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!
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 2 months ago 2
@KaktusFilms I had the same problem, you figured it out yet?
casperbyc 2 months ago
@casperbyc
Yeah, here it is:
Go to your app delegate and add this:
UIViewController *viewController1 = [[FirstViewController alloc] initWithNibName:@"FirstViewController" bundle:nil];
UINavigationController *navigationController = [[UINavigationController new] initWithRootViewController:viewController1];
navigationController.viewControllers = [NSArray arrayWithObject:viewController1];
And thats it! So how you see, I populate navigationController with viewController1 and it works perfectly!
KaktusFilms 2 months ago
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 4 months ago
@clockmonster786 same issue here...
ragnarok513 2 months ago
how to start a navigation controller from a button, in the main view..not tab bar...main view - button--nav controller ??????? tnks
jhonbpmdeep 4 months ago
This has been flagged as spam show
Very cool video. There are easier ways to develop an iPhone app. Check out this site
tiny (dot) cc/iphone-app
You have to type in the dot. Youtube wont let me put the link.
jacksonbobson 5 months ago
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!!
info1331 5 months ago
Thanks a lot. It gives my a big hand. :)
jimmyhuang1114 5 months ago
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 5 months ago
@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 5 months ago
@theAppCodeBlog Its cool, that exactly what I ended up doing :) Thanks anyway.
richardpniewski 5 months ago
@richardpniewski
Awesome good luck with it.
theAppCodeBlog 5 months ago
@theAppCodeBlog Thanks man.
richardpniewski 5 months ago
Thanks!
I was suffering for the last day because of the changes in Xcode 4. I had no idea it was that simple.
tyineurope 6 months ago
where did u get firstview controller from???????
mulcslo 6 months ago
@mulcslo
FirstViewController was created automatically by Xcode when I selected Tab Bar App template at the beginning.
theAppCodeBlog 6 months ago
So happy for an updated video on this topic! There are so many tutorials on this from like 30 years ago! :-P
GabeVillatoro 6 months ago