I would like to set a custom image for all the UITableViewCell accessory view in my app. I've tried using this code:
[[UITableViewCell appearance] setAccessoryView:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"table-arrow.png"]]];
but it doesn't work.
Any idea?
Try creating custom appearance selector in UITableViewCell category. Here's an example implementation:
.h:
.m:
And than you can configure all your cells using proxy object: