Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 7    Views: 426

mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
01/09/13 11:29 PM (13 years ago)

Tutorial iOS: Custom Arrow Color in Menu List

In your BT plugins folder in BT_Screen_menuListSimple.m or Menu List with image.m file search for the following //init our custom cell cell = [[[BT_cell_menuList alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; and add this line below. cell.accessoryView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"accessory.png"]] autorelease]; You will have to create an image with the file name of your choice and drag it into XCode. The image size should be around 25 x 25. The result: http://snurlz.com/wp-content/uploads/arrow.png
 
hacerapps
buzztouch Evangelist
Profile
Posts: 542
Reg: Jan 30, 2011
usa
11,170
like
01/09/13 11:32 PM (13 years ago)
cool tip thanks
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/09/13 11:46 PM (13 years ago)
very cool! Thanks! Cheers! -- Smug
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
01/10/13 12:48 AM (13 years ago)
on a roll mysps, thanks! ian
 
Arubaman
Aspiring developer
Profile
Posts: 636
Reg: Oct 20, 2011
Akron
16,910
like
01/10/13 02:24 AM (13 years ago)
Thanks, love these snippets.
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
01/10/13 03:09 AM (13 years ago)
Cool, thanks. I wonder if this is applicable to Susan's "Menu with images" plugin, probably. Will test and tell.
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
01/10/13 05:43 AM (13 years ago)
Now have a folder designated to @mysps snippets. Happy days to that.
 
Black White
I hate code!
Profile
Posts: 292
Reg: Feb 22, 2012
hanoi
4,770
like
01/19/13 08:49 AM (13 years ago)
hi @MYSPS when i added this line below. cell.accessoryView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"accessory.png"]] autorelease]; then all menu list show arrow :( i cant hide in what menu list i want pls help me thanks ! screeshort http://bit.ly/10qaTgG
 

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.