tags:

views:

34

answers:

1

Hi,

without Creating any of the uibutton(custom button with background image)in tableview cell. I want to change the accessory indicator color from gray to orange.What should i do for that...

plz reply as soon as possible(plz answer me clearly or else i can't understand)...

i'm waiting for ur reply...

Thank u...

A: 

You'll need to create a new UIView with a UIImageView inside it and then set that as the Accessory for the cell. So you'll need to create a image just like the default accessory but in the colour you want.

UIView* accessoryView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 24, 50)];
    UIImageView* accessoryViewImage = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"NEWIMAGE.png"]];
    accessoryViewImage.center = CGPointMake(12, 25);
    [accessoryView addSubview:accessoryViewImage];
    [cell setAccessoryView:accessoryView];
    [accessoryViewImage release];
    [accessoryView release];
octermircty
Thank u so much...OCTERMIRCTY
Mano