UITableViewCellAccessoryDisclosureIndicator change color ios 7

UITableViewCell.accessoryType                                |     tableView setTintColor:red Color    |    cell setTintColor:red

UITableViewCellAccessoryDetailDisclosureButton    |     info(red) >(does not work)               |  info(red) > (does not work)

UITableViewCellAccessoryDisclosureIndicator         |      > (does not work)                           |   > (does not work)

UITableViewCellAccessoryCheckmark                     |     √ (red)                                              |  √ (red)              

 

So, if you would like to change color for disclosure Indicator, I recommend two ways.

One is like this.

  1. UIView* accessoryView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 24, 50)];
  2.     UIImageView* accessoryViewImage = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@”accessory_image.png”]];
  3.     accessoryViewImage.center = CGPointMake(12, 25);
  4.     [accessoryView addSubview:accessoryViewImage];
  5.     [cell setAccessoryView:accessoryView];

 

The other is like this.

Use 3rd party. mock up like following picture.

MSCellAccessory

https://github.com/bitmapdata/MSCellAccessory

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s