UITableViewController accessing static cells programmatically issue

后端 未结 6 1455
孤独总比滥情好
孤独总比滥情好 2021-01-05 23:41

Say I have a table with 10 static cells in it, is there a way to select a certain cell programmatically?

I\'ve tried this

UITableViewCell *cell = [se         


        
6条回答
  •  长情又很酷
    2021-01-06 00:15

    You can try this...

    UITableViewCell *cell = (UITableViewCell*)[yourTableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:rowvalue inSection:0]];
    

提交回复
热议问题