Home News Forum Social Networking Support Us Advertise

Spanish Lesson 1 ($1.99)

aWake!Gently ($1.99)

The Bird & The Snail - Knock Knock - Deluxe ($4.99)

Match-It Trains ($0.99)

Tangled ($0.99)

iFlatter ($0.99)

The 15 puzzle ($0.99)

Tap Forms Database ($8.99)

Higher or Lower Card Game (Hi Lo) ($0.99)

Red Pixel ($0.99)

Time-Shift Radio ($0.99)

Want your application advertised here? Only $10/week!

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-01-2008, 12:59 PM   #1 (permalink)
ray
Junior Member
 
Join Date: Aug 2008
Posts: 10
Rep Power: 0
ray is on a distinguished road
Default Problem with hidesBottomBarWhenPushed

I'm having trouble hiding the bottom tab bar when navigating backwards through the navigation tree. First, let me describe my view flow (all of my objects are created programatically, i.e. no interface builder is used with my app):

1. The root screen of my app is a tab bar controller which has an array of view controllers attached to it. One of the view controllers attached to the tab bar is a table view controller which has several cells that the user can select.

2. The user selects a table view cell, and the screen pushes to a new table view controller that should not be associated with a tab bar controller, therefore no tab bar should be visible.

3. The user selects a table view cell (again) and the screen pushes to a new (different from step 1) tab bar controller that has an array of view controllers assigned to it (so there should be a tab bar visible at the bottom of the window).

The problem I'm having is when the user goes from step 1 to step 2, I set hidesBottomBarWhenPushed = YES on the step 2 view controller and the tab bar correctly disappears. Then when the user goes from step 2 to step 3, the new tab bar correctly appears.

HOWEVER, if the user presses the back buttom from step 3 to step 2, then the tab bar from step 1 appears, which shouldn't be visible. How can I get it so that when moving backwards through the navigation tree, the tab bar doesn't reappear? I've tried setting hidesBottomBarWhenPushed everywhere and nothing seems to work.

Is this a bug, or am I setting this property in the wrong place?
ray is offline   Reply With Quote
Old 09-01-2008, 01:43 PM   #2 (permalink)
Senior Member
 
Join Date: Aug 2008
Posts: 361
Rep Power: 1
DevTeamOfOne is on a distinguished road
Default

I'd say that
A) Its probably a bug
B) Its also probably not picked up because hidesBottomBarWhenPushedis generally only used at the furthest end of a heirarchy.
C) thats the way the HIG says it should be. Try to avoid removing the bottom bar if you can.
DevTeamOfOne is offline   Reply With Quote
Old 09-01-2008, 01:51 PM   #3 (permalink)
ray
Junior Member
 
Join Date: Aug 2008
Posts: 10
Rep Power: 0
ray is on a distinguished road
Default

Unfortunately I have to hide it since it doesn't make sense to show it in that second step (which is really a "sub-step" since the user might skip directly from step 1 to 3 depending on their choice and then everything is fine). I was thinking of sticking a blank tab bar at the bottom, but I was hoping to avoid that.

It seems like a bug since if it correctly works when stepping forward, then you'd assume it would work fine when stepping backwards.
ray is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


» Advertisements


» Stats
Members: 8,229
Threads: 20,197
Posts: 90,213
Top Poster: RickMaddy (2,121)
Welcome to our newest member, jrsiqueira
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:23 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0