>
> I’m no expert in iOS view controller behavior, but since no one has jumped
> in, I’ll contribute how I understand it.
>

Thanks for jumping in here, Quincey.


Hiding the tab does NOT seem like a reasonable way to approach this.
> According to the UITabBarController documentation, “You should never access
> the tab bar view of a tab bar controller directly.”
>

Darn - I didn't see that. That said there are ways through the appearance
proxy to access some of the UITabBar properties. I guess the ones exposed
are the only ones that are official usable in that context then.



> In any case, it’s the view *controller* that controls the geometry of the
> views it manages, so if the tab bar controller isn’t expecting the tab bar
> to be hidden, it likely has no way of “reclaiming” the tab bar view’s real
> estate without its own API for this.
>

I had the following idea for a work-around: Wrapping the controllers that
go into the UITabController with a UIViewController that has a child view
controller. And then I could adjust the size of the child view controller
(and thereby hopefully the whole view controller stack). But I haven't
tried this yet. I am also quite sceptical how well this works with the
UINavigationController in the mix.



> So that leads to the question of why the view controller (apparently) has
> no API for properly hiding the tab bar. That (I believe) is because you’re
> not supposed to do that. According to the HIG, tab bar controllers are
> supposed to be used only at the top level of your controller hierarchy, and
> (I believe) it’s considered undesirable for your app’s UI to undergo as a
> radical change as losing its tab bar. In general, the user has no clue how
> to get it back, and loses the ability to switch directly between the areas
> of functionality the tabs represent.
>

Well, one could say the same thing of any fullscreen view controller. Of
course there would be a way to leave the view controller. And yes - the
UITabController is a the root of the navigation.

It's more than unfortunate I have to go down the tab bar hiding route - but
at this stage there isn't really a way around it. (Ideally I would present
a modal controller - but cannot for reason beyond my control. long story)

Thanks for your input!
cheers,
Torsten
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to