Re: UITabBars and UITableViews
Re: UITabBars and UITableViews
- Subject: Re: UITabBars and UITableViews
- From: Luke Hiesterman <email@hidden>
- Date: Thu, 05 Apr 2012 22:29:58 +0000
- Thread-topic: UITabBars and UITableViews
You want to start with a UITabBarController instance, and then make the view controller associated with a give tab be a UINavigationController instance. That navigation controller's rootViewController will be a UITableViewController. Then when you push a new view controller, it will be in the navigation controller which is contained by the tab bar controller, and the tab bar stays on screen.
Luke
On Apr 5, 2012, at 3:22 PM, Alex Zavatone wrote:
> Hi. I'm trying to get a GUI with a UITabBar and UITableViews set up.
>
> I've got a UITabView that is programmatically created.
> One of the Tabs displays a UITableView that is also programmatically created.
>
> This UITableView then displays other views when didSelectRowAtIndexPath is called.
>
> Unfortunately, when a table cell is clicked, my tab view goes away and the new table view is displayed.
>
> What I can't get my head around is how to structure the views so that the tabBar stays on the screen.
>
> Is it as simple as making the UITableViews shorter, or is there some window/view mojo that I'm missing?
>
> Thanks
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden