Change disclosure indicator color on cell selection

前端 未结 7 1862
甜味超标
甜味超标 2021-01-12 01:44

I\'ve read some posts on this, but still can\'t get the answer to my question.

I have a disclosure indicator. \"

7条回答
  •  轮回少年
    2021-01-12 02:24

    You need to use a custom accessory view for this. Syntax:

    cell.accessoryView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"accessory.png"]] autorelease];
    

    Here you are assigning an image view with an image accessory.png

    to your cell's accessory view.

提交回复
热议问题