I'm using a custom drawn UITableViewCell, including the same for the cell's accessoryView
. My setup for the accessoryView happens by the way of something like this:
UIImage *accessoryImage = [UIImage imageNamed:@"accessoryDisclosure.png"];
UIImageView *accImageView = [[UIImageView alloc] initWithImage:accessoryImage];
accImageView.userInteractionEnabled = YES;
[accImageView setFrame:CGRectMake(0, 0, 28.0, 28.0)];
self.accessoryView = accImageView;
[accImageView release];
Also when the cell is initialized, using initWithFrame:reuseIdentifier:
I ensured to set the following property:
self.userInteractionEnabled = YES;
Unfortunately in my UITableViewDelegate, my tableView:accessoryButtonTappedForRowWithIndexPath:
method (try repeating that 10 times) is not getting triggered. The delegate is definitely wired up properly.
What can be possibly missing?
Thanks all.