Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 2    Views: 83

Tyroner
Aspiring developer
Profile
Posts: 175
Reg: Dec 26, 2012
Johannesburg, S...
4,200
12/09/13 01:30 AM (11 years ago)

Problems with using Custom HTML/text plugin with BT 3.0 on iOS

I have picked up the following problems using this plugin: 1. The icons for refresh, email and load in safari take on the same colour as the background colour of the navigation Bar. If you use a white background as is so common with iOS7 then you do not see these icons. I accidentally found the following way to solve this problem. Code out the following lines in the Layout folder’s viewUtilities.m file: 455 460 461 Line 455 // UIColor *tmpColor = nil; //nav bar background color if([[BT_strings getStyleValueForScreen:theScreenData nameOfProperty:@"navBarBackgroundColor" defaultValue:@""] length] > 0){ [BT_debugger showIt:self theMessage:[NSString stringWithFormat:@"setting browser tool-bar background color: %@", [[appDelegate.rootApp.rootTheme jsonVars] objectForKey:@"navBarBackgroundColor"]]]; Line 460 // tmpColor = [BT_color getColorFromHexString:[BT_strings getStyleValueForScreen:theScreenData nameOfProperty:@"navBarBackgroundColor" defaultValue:@""]]; Line 461 // [theToolbar setTintColor:tmpColor]; This will change the colour of these icons to the same colour as that of the icons on the tabs bar. 2. The icon to take you back to the previous screen is white with result that you cannot see it as the background is white. I know its there because when I tap on the the space where it is supposed to be then it will work. Is there anybody out there who can help with this? 3. If you tap the email icon then nothing happens. You cannot send emails from this plugin anymore. In the previous version of BT control panel you could send an email if you had an email address anywhere in the document. Now no more! Any help would be greatly appreciated! Tyrone
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
12/09/13 08:10 AM (11 years ago)
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
12/09/13 11:54 AM (11 years ago)
Here is some stuff on programming the navbar and its buttons. http://www.appcoda.com/customize-navigation-status-bar-ios-7/ I generally find its better to leave the buzzotuch code in there and let it run its course then do my custom coding after it runs so that it overwrites what buzztouch did. (as opposed to commenting out the buzztouch code).
 

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.