Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 76

LevensGardener
Aspiring developer
Profile
Posts: 220
Reg: Sep 30, 2012
Kendal
10,450
03/24/13 10:31 AM (12 years ago)

Hide bottom tab bar in HTML screens...

I have a tabbed layout which works great, but when the user has drilled down through the menus, ultimately the main content screens are html. All text and photos are embedded within the app for these html docs. I wondered if it was possible to hide the bottom tab bar in these final content screens. This would give a less cluttered look, and give more space for those words and pictures. The top nav bar has a back button allowing the user to easily navigate back to the menus and tabbed screens. There are no options for this in the plugin's control panel. I have seen reference to "hideBottomTabBarWhenScreenLoads":"1" in v1.5 documentation and have tried pasting this in the Json to no effect. (Perhaps this is what the Json snippet keeper is for?) I have also seen reference to commenting out some code in a similar post referencing custom url screens (thanks Kittsy for this...) But I can't get anything to change with this approach either- comment out these lines in customURL //get the bottom toolbar (utility may return nil depending on this screens data) //browserToolBar = [BT_viewUtilities getWebToolBarForScreen:self:[self screenData]]; //if(browserToolBar != nil){ // browserToolBar.tag = 49; // browserHeight = (browserHeight - 44); //} Any ideas would be appreciated... Thank you. Chris
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
03/24/13 10:42 AM (12 years ago)
I think this is the code that works. Insert it near the bottom of your BT_screen_customHTML.m or BT_screen_htmlDoc.m screens. - (BOOL) hidesBottomBarWhenPushed { return YES; }
 
LevensGardener
Aspiring developer
Profile
Posts: 220
Reg: Sep 30, 2012
Kendal
10,450
like
03/24/13 11:14 AM (12 years ago)
Thanks MGoBlue. That did it! I love the way the bottom bar slides back in from the right too, when you go back. Brilliant. I'm just honing the 1.1 update- even before the app is accepted. 1.0 is in for review with Apple right now. Thanks again. Chris
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
03/24/13 04:16 PM (12 years ago)
I have a plugin waiting approval that uses this method. I set it up so you can turn it on or off in the control panel Glad it worked for you.
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
04/11/13 04:22 AM (12 years ago)
Don't you guys love when you think "there is probably no way that can be done" Then you search the forum and Bam! There is the solution! Thanks @MGoBlue and @LevensGardener
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.