Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jchildress

macrumors member
Original poster
Jul 9, 2008
49
0
... and says to the tabBarController: "What do I have to do around here to get viewed"?

OK, so I've got a UI problem where I can't seem to get a specific scenario to work. What I have is a 4 button TabBarController application that I created in xCode using New Project --> iPhone Application --> tabBar Application.

In the first view that starts up (tabBar button 1), I have a grid of buttons that when one is pressed, is supposed to flip to a new view using the "UIViewAnimationTransitionFlipFromLeft" option. To further clarify, this all should happen in the tabBarController's first viewController. Each button in the grid on the first view, when pressed, will transition to the second view that has a textBox filled with information. Because I want to design my own UI out of images, I'm not using a standard drilldown navigationController.

I tried following the code used in the video tutorial by Nick Meyers, http://vimeo.com/1450817 to flip from the first view to the second, but I can't seem to wrap my head around how I would do that with the tabBar Controller's ViewController.

So my question to all of you experts out there: How can I setup my tabBar application to allow the first button view to transition flip to a completely new view? And from the new view, back to the first\original view. All of this will need to happen in the first tabBar button's viewController.

Thanks for any help,
Jason
 

belsokar

macrumors member
Jul 21, 2005
80
43
... and says to the tabBarController: "What do I have to do around here to get viewed"?

OK, so I've got a UI problem where I can't seem to get a specific scenario to work. What I have is a 4 button TabBarController application that I created in xCode using New Project --> iPhone Application --> tabBar Application.

In the first view that starts up (tabBar button 1), I have a grid of buttons that when one is pressed, is supposed to flip to a new view using the "UIViewAnimationTransitionFlipFromLeft" option. To further clarify, this all should happen in the tabBarController's first viewController. Each button in the grid on the first view, when pressed, will transition to the second view that has a textBox filled with information. Because I want to design my own UI out of images, I'm not using a standard drilldown navigationController.

I tried following the code used in the video tutorial by Nick Meyers, http://vimeo.com/1450817 to flip from the first view to the second, but I can't seem to wrap my head around how I would do that with the tabBar Controller's ViewController.

So my question to all of you experts out there: How can I setup my tabBar application to allow the first button view to transition flip to a completely new view? And from the new view, back to the first\original view. All of this will need to happen in the first tabBar button's viewController.

Thanks for any help,
Jason

Sorry, this is not a solution to you problem...I just hope you get a response to this. I am trying to do something similar, only place a drill-down navigation controller within a particular view of a tab bar controller view.
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
Are you trying to flip the view controller's view, or the entire tab view? If the latter, you may be interested in hidesBottomBarWhenPushed.
 

hyarlagadda

macrumors newbie
Oct 6, 2008
1
0
Sorry, this is not solution but I have the same problem. I am using multiple NIB files in a TabBarController. And my first tab should load a NavigationController NIB file and display its view.
Sorry, this is not a solution to you problem...I just hope you get a response to this. I am trying to do something similar, only place a drill-down navigation controller within a particular view of a tab bar controller view.
 

belsokar

macrumors member
Jul 21, 2005
80
43
i also have problems with the TabBarController / NavbarController. Lets work together. Here is my sample code..

http://www.learnclip.com/iphone_tutorials/ViewPusher.zip

What you need to do is something along the following lines:

- setup your UIViewController classes and nibs.
- setup your UINavigationController object(s), and initialize them with your UIViewControllers
- setup a UITabBarController object and add the NavigationControllers to the viewControllers object of the UITabBarController.

It should look something like this:


Code:
UINavigationController *aNVC = [[UINavigationController alloc] initWithRootViewController: self.firstView];
self.firstViewNavBarController = aNVC;
[aNVC release];
	
firstViewNavBarController.navigationBarHidden = YES;  //if you don't need it
	
//Setup Nav Bar for Setup View
UINavigationController *aNVC2 = [[UINavigationController alloc] initWithRootViewController: self.secondView];
self.secondViewNavBarController = aNVC2;
[aNVC2 release];
	
tabBarController.viewControllers = [NSArray arrayWithObjects: self.firstViewNavBarController, self.secondViewNavBarController,nil];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.