How do I select a UITableViewCell by default?

前端 未结 7 2132
忘了有多久
忘了有多久 2020-12-17 10:50

I have created a UITableView and would like a specific UITableViewCell to appear selected (blue) when the view is loaded.

7条回答
  •  北荒
    北荒 (楼主)
    2020-12-17 11:22

    Use the UITableViewCell method

    - (void)setSelected:(BOOL)selected animated:(BOOL)animated
    

    Info here.

提交回复
热议问题