Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 9    Views: 118

EdReyes
Lost but trying
Profile
Posts: 574
Reg: Oct 21, 2013
location unknow...
17,640
11/05/13 03:50 AM (12 years ago)

adding, replacing button types and images in top nav bar

Trying to figure this one out myself, is there any way to add an additional right nav bar button type to include a phone icon or sms icon and link it to the appropriate plugin. as well as replacing the left side refresh icon to a home icon. are these png files that can be replaced with the same file name. Is this done via the BT CP or xcode? Thanks for any guidance. Ed
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
11/05/13 03:53 AM (12 years ago)
I think they might be png's, at least the right button. Check you downloaded package, maybe the art folder.
 
EdReyes
Lost but trying
Profile
Posts: 574
Reg: Oct 21, 2013
location unknow...
17,640
like
11/05/13 03:56 AM (12 years ago)
@MadRod, did couldn't find anything there that's why im asking, are these part of a character set or something?
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
11/05/13 04:40 AM (12 years ago)
The navbar buttons that are changeable in the control panel are ios system icons. The changes will need to be hard coded into xcode, I think I wrote an answer to a post with a similar question, it's here somewhere
 
EdReyes
Lost but trying
Profile
Posts: 574
Reg: Oct 21, 2013
location unknow...
17,640
like
11/05/13 05:15 AM (12 years ago)
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
11/05/13 05:20 AM (12 years ago)
If I were you I would try and limit your searches to buzztouch as when you will be searching for code on other websites especially stack overflow you will never find the code you need to change This post will give you the gist http://www.buzztouch.com/forum/thread.php?fid=A2F08DF30D5B47C3F930107&sortColumn=FT.id&sortUpDown=DESC&currentPage=2&tid=ED67B72A1219A82729E2384&command=confirmDeleteThread
 
EdReyes
Lost but trying
Profile
Posts: 574
Reg: Oct 21, 2013
location unknow...
17,640
like
11/05/13 06:04 AM (12 years ago)
Thanks Kittsy, saw that already from back in march, wasn't sure if this applies to xcode5 ios7 or previous versions only. I'll give it a shot.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
11/05/13 06:10 AM (12 years ago)
that is part of uikit so very little will change
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
11/05/13 11:45 AM (12 years ago)
There are two spots where you want to add code for changing the navbar in each plugin (on a plugin by plugin basis). In these methods -(void)viewWillAppear -(void)viewDidAppear There is a function call [BT_viewUtilities configureBackgroundAndNavBar:self theScreenData:[self screenData]]; This is where your app looks at your config file data and sets your navbar properties. What you can do is let this code run and set the navbar properties according to the control panel. Then immediately after this function call add your own code for customizing the navbar. ********* eg: //setup navigation bar and background [BT_viewUtilities configureBackgroundAndNavBar:self theScreenData:[self screenData]]; self.navigationController.navigationBar.topItem.title = _navBarTitleText; UIBarButtonItem *emailDevButton =[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCompose target:self action:@selector(emailDev)]; self.navigationController.navigationBar.topItem.rightBarButtonItem = emailDevButton; ****************************** It sounds like your trying to add a second button? There is a section here on adding multiple bar button items. http://www.appcoda.com/customize-navigation-status-bar-ios-7/
 
EdReyes
Lost but trying
Profile
Posts: 574
Reg: Oct 21, 2013
location unknow...
17,640
like
11/05/13 12:01 PM (12 years ago)
Ill try that, I posted the appcoda.com link earlier and getting better at this. going through others online tutorials for xcode and ios7 where they start with the storyboard and interface builder. is there any way that the downloaded binaries from BT once loaded into xcode5 that we can add and remove elements via storyboard. or can we build in xcode from scratch then connect that to the bt control panel. I'm on my 5th day building my first app and just finished one this morning. Sifting through lines of code is tiresome. but if i can drag and drop build apps to new standards i'll be an app machine lol.
 

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.