Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 32

NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
02/15/14 09:01 AM (11 years ago)

hideTabBarWhenScreenLoads BTv3 BT-Hosted (iOS not working)

Pretty sure has been discussed in other threads, but wanted to make sure it was on the radar, and everyone was aware of the work-around until it is fixed for iOS BTv3 (BT-Hosted) JSON that PlugIns generate when Hide TabBar option selected is: "hideTabBarWhenScreenLoads": "1" However it does not remove the TabBar. You can manually add the following to each screen: "hideBottomTabBarWhenScreenLoads": "screenId" NOTE: Remember if you edit and save any Control Panel option for a screen after editing the JSON, you will need to paste in this line and then save. Otherwise it will be removed.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
02/15/14 10:00 AM (11 years ago)
Wait a minute -- custom JSON inserts should not be erased. That is a flaw. Does that happen across all plugins?
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
02/15/14 10:14 AM (11 years ago)
Have not tried all plugins. However happens in all the screens in my BTv3 app where I have added so far: (Location Map, Smug Msg Loc, and PDF Doc)
 
Adam
Aspiring developer
Profile
Posts: 247
Reg: Oct 23, 2010
Southern Califo...
4,470
like
02/16/14 11:38 AM (11 years ago)
In the view did appear in the .m file add this to hide the tab bar: self.tabBarController.tabBar.hidden=YES; And if you if you go back to your menu and don't want it to hide add: self.tabBarController.tabBar.hidden=NO; in the view did appear in the menu plugin Adam
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
02/17/14 12:43 PM (11 years ago)
Adam - appreciate the workaround. The main goal was to make sure it was documented so it would make onto whatever is the "official" Core bug list. Not wanting to implement inline code fixes that would not be practical to maintain without upgrading an app once it has been released. That is why I would prefer to stay with JSON.
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
03/02/14 05:51 PM (11 years ago)
Stopped back and re-read this thread again... Adam- Have you ever tried changing the .m as you suggested: "self.tabBarController.tabBar.hidden=YES; " and then come back later and change the setting in in ControlPanel to show tabBar? I was wondering if the JSON would override the code in the .m
 
Adam
Aspiring developer
Profile
Posts: 247
Reg: Oct 23, 2010
Southern Califo...
4,470
like
03/02/14 06:21 PM (11 years ago)
I don't think it overrides. Adam
 

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.