Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 56

Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
08/10/14 07:23 AM (9 years ago)

New iOS context question

I have a purple nav bar and need to change the context menu graphic in the nav bar to white. It is currently black. Line 70 in the BT_contextMenu.m reads the following [menuTable setBackgroundColor:[UIColor whiteColor]]; I have searched for "color" and this is the only thing I have found. this is the default code and the menu icon remains black. does anyone know how to change its color Joe
 
Nicks App
Code is Art
Profile
Posts: 426
Reg: May 21, 2014
Las Vegas
6,010
like
08/10/14 08:09 AM (9 years ago)
[email protected] helped me with a "color" problem I had with my iOS App. I won't paste his answer here, because I don't want to confuse you with what might me an unrelated situation.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
08/10/14 10:23 AM (9 years ago)
How are you doing, Joe! Take a screenshot and post it onto http://PostImg.org please so that I can understand your objective. -- Niraj
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
08/10/14 11:57 AM (9 years ago)
@ Niraj, here is the image link https://www.buzztouch.com/applications061013/JA975B678C4F0C3302C6B1213/images/screen1.jpg I thought about this and realized this is an image but I thought I could color it in the code and convert to white. If it is in the code I don't know where? the Gui folder contains both white and black images. The default must be black so how to change the graphic to the white image png David has provided? I am now assuming the graphic name bt_contextMenu_black.png can be switched to the bt_contextMenu_white.png as the new default graphic by finding the string and switching the graphic names. I have never worked with strings this is a somewhat educated guess. I could easily convert the black graphic in photoshop but I would like to learn something here. Am I correct about the strings? I am going in to find out if there is another answer I sure want to learn it. Thanks for the help I was sure wrong about strings, its not like android just looked brick wall. I tried to find the image BT_viewController.m contains on line 268-271 //ios7 uses black image, else white... NSString *img = iosVer > 6 ? @"bt_contextMenu_black.png" : @"bt_contextMenu_white.png"; UIImage *tmpImg = [UIImage imageNamed:img]; CGRect imgFrame = CGRectMake(0, 0, tmpImg.size.width, tmpImg.size.height); I am sleuthing for my self and documenting it here. This is awesome. anyone want to join in Joe
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
08/10/14 12:44 PM (9 years ago)
I figured it out if anybody needs this thanks to all. I changed the color by locating BT_viewController.m line 268-271 //ios7 uses black image, else white... NSString *img = iosVer > 6 ? @"bt_contextMenu_black.png" : @"bt_contextMenu_white.png"; UIImage *tmpImg = [UIImage imageNamed:img]; CGRect imgFrame = CGRectMake(0, 0, tmpImg.size.width, tmpImg.size.height); the first image name bt_contectMenu_black.png should simply be bt_contextMenu_white.png. That will pull the white graphic to the header as you can see https://www.buzztouch.com/applications061013/JA975B678C4F0C3302C6B1213/images/photo.PNG Freeking HURRAY Joe
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
08/10/14 03:01 PM (9 years ago)
That's a nice looking screen Joe! Cheers! -- Smug
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
08/10/14 03:03 PM (9 years ago)
thank you smug Joe
 

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.