Adding the little arrow to the right side of a cell in an iPhone TableView Cell

后端 未结 9 1346
梦如初夏
梦如初夏 2021-01-29 23:21

This should be simple enough.

I have an iPhone app with a TableView. How do I add the little classic arrow to the righthand side of each cell?

9条回答
  •  盖世英雄少女心
    2021-01-29 23:51

    for simple arrow:

    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; 
    

    and for detailed arrow:

    cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
    

提交回复
热议问题