How can I customize the accessory disclosure image in a UITableViewCell?

前端 未结 9 607
被撕碎了的回忆
被撕碎了的回忆 2020-12-07 15:55

I would like to use a custom version of the standard disclosure accessory image in my UITableView. How can I do this? I\'m hoping that sub-classing UITableViewCell is not ne

9条回答
  •  独厮守ぢ
    2020-12-07 16:30

    You'll need to create a custom view and assign it to the accessoryView property of the UITableViewCell object. Something like:

    myCell.accessoryView = [[ UIImageView alloc ] 
                           initWithImage:[UIImage imageNamed:@"Something" ]];
    

提交回复
热议问题