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

后端 未结 9 1347
梦如初夏
梦如初夏 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:50

    The other way to do this is to specify UITableViewCellAccessoryDisclosureIndicator when you create the cell. To do this you'll likely alloc init your cell in the tableViewCellWithReuseIdentifier delegate method (then proceed to customize and configure your cell).

    UITableViewCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellAccessoryDisclosureIndicator reuseIdentifier:identifier];
    

提交回复
热议问题