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

后端 未结 9 1349
梦如初夏
梦如初夏 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-30 00:03

    IN SWIFT 5

    Use

    cell.accessoryType = .detailButton
    

    for a small Info-button on the right.

    cell.accessoryType = .disclosureIndicator
    

    for a small Info-arrow on the right.

    cell.accessoryType = .detailDisclosureButton
    

    for a small Info-button and Info-arrow on the right.

    infront of your return cell

提交回复
热议问题