Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 7    Views: 60

Don Javi
Aspiring developer
Profile
Posts: 91
Reg: Oct 08, 2011
Burriana
910
01/07/14 10:03 AM (11 years ago)

Hide Tabs on some screen

Hello I need to hide the tabs on the screen of "localization map" and "custom url", is it possible? Thanks !!
 
EdReyes
Lost but trying
Profile
Posts: 574
Reg: Oct 21, 2013
location unknow...
17,640
like
01/07/14 02:55 PM (11 years ago)
i don't think you can have both, you would have to choose your primary form of navigation option one have your menu items on the homepage whether its menu rows, or image buttons clicking an item will open a new screen leaving you with a back button on top but you'll have open space on the bottom option two have the tab menu and live with you have option three to customize it in xcode outside of bt
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/07/14 03:12 PM (11 years ago)
You used to be able to hide the Tab Bar. Maybe you still can… What used to work great in iOS 6 may not work in iOS 7. Put this (outside of any method) in your desired plugin (map, url) - (BOOL) hidesBottomBarWhenPushed { return YES; } this 'might' work, but I haven't tried it in iOS 7. If it doesn't work, sorry. If it does work, let us know so we can update our notes. Cheers! -- Smug
 
Don Javi
Aspiring developer
Profile
Posts: 91
Reg: Oct 08, 2011
Burriana
910
like
01/08/14 03:27 AM (11 years ago)
Thanks !!! I found a way ... in BT_Config.txt add "" hideBottomTabBarWhenScreenLoads ":" 1 "," (without quotes) in the id you want to remove the tab. Works perfect with ios 7 luck
 
EdReyes
Lost but trying
Profile
Posts: 574
Reg: Oct 21, 2013
location unknow...
17,640
like
01/08/14 04:00 AM (11 years ago)
Congrats, haven't tried that in iOS7, now we know.
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
01/24/14 09:56 AM (11 years ago)
Thanks Don Javi for starting this thread. (Now using on a few screens.) If you want to keep it right with the screen involved, you can add to the JSON Screen data directly from the Control Panel (and not mess with the BT_Config.txt) NEW EDIT: The example line below should work as is for any screen. You will not need to change the ID# for each one, as screenId refers to the current screen. (Tested on BTv3 BT Hosted iOS7) "hideBottomTabBarWhenScreenLoads": "screenId" PS Remember that all lines other than the last line should have a comma at the end of the line
 
MobiGeni
Aspiring developer
Profile
Posts: 65
Reg: Jan 09, 2013
Akersloot
1,350
like
11/27/15 09:57 AM (9 years ago)
Thanks, but where can I find this JSON Screen data for the Custom URL plugin? I have several screens but there is one screen where I would like to bottom tabs
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/27/15 05:20 PM (9 years ago)
"JSON Screen Data" is the data for the screen you are currently on, as configured by the BT Control panel. Different screens will have different screen data. It is 'usually' accessible from the control panel, on the screen configuration page. If you're going to edit Json manually, go for it. But remember to keep the format valid, by checking your work with jsonlint.com Cheers! -- Smug
 

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.