Hiya, I would like to know if there's an example of this anywhere. Basically I would like to push the UITabBar, and keeping with apple's guidelines I can only do this by placing the UITabBar(not the controller) in a viewController. Examples of this are in the Music selection on your iPhone/iTouch when you hit the "Now Playing" nav item, notice the tab bar pushes over.
This is somewhat of the flow I'm trying to accomplish
So when the app launches I'm greeted with my tab bar and when I select a cell from the tableView the detail view is pushed onto the stack resulting in a possible customized button bar at the bottom of that view.
Another good example of this functionality is the NYTimes app (it's free if you want to check it out)
Now I got the basics of this running, but I'm getting crashes when trying to wire IBOutlets to the tab items in IB. Would appreciate some insight on this.
I highly recommend doing it the opposite way. You should have the tab bar controller as the root and then launch navigation controllers when the various tabs are selected. This is almost always how it is implemented.
Check out this tutorial, it is pretty clear and a good guideline.
I highly recommend doing it the opposite way. You should have the tab bar controller as the root and then launch navigation controllers when the various tabs are selected. This is almost always how it is implemented.
Check out this tutorial, it is pretty clear and a good guideline.
Yup this is the way I did it before, but I ran into the issue where the tabBarController can't be pushed since the NavigationController is a subclass of Tab. I do have to admit, this way is annoying but I can't think of another way to achieve the navigation flows I mentioned in the OP. But yeah that's a nice link!
Regarding the NYTimes app, it's a bit of an illusion in play there. They _do_ keep the tab bar at the top level, with all the various navigation controllers under its watch.
Now, it's true that, when you pick one of the articles, the tab bar is pushed aside. You'd think that means the tab bar was in a view managed by a navigation controller. Not so! It's a lot easier than that.
Keep the tab/nav bar hierarchy as you've seen in other examples, but - when it comes time to push your detail view into place, and you want that tab bar pushed aside temporarily, set the hidesBottomBarWhenPushed property to YES in your detail's view controller, and do that before pushing the VC onto your nav bar controller's stack. That should do it!
Also see the iPhoneCoreDataRecipes sample app from Apple Dev Network. I believe that makes use of this property as well.
jdandrea as I said in the other thread thank you! With one line of code I don't have to bust my brain with the above workaround... that's a serious load off
jdandrea as I said in the other thread thank you! With one line of code I don't have to bust my brain with the above workaround... that's a serious load off
Cheers!
You're welcome! I'm very glad to hear you won't have to go with that workaround either.