What's the best way to update an image in my tableview image subview?

后端 未结 1 649
长情又很酷
长情又很酷 2021-01-27 16:14

Specifically, how do you get the image subview from a uitableview cell?

My table view gets data from the web asynchronously. When I created the image view the first time

1条回答
  •  深忆病人
    2021-01-27 16:23

    Set a tag on the imageView when you create it:

     [image viewSetTag: uniqueIntValue];
    

    Then when you want to grab the view use:

    UIView* recoveredImageView = [cell viewWithTag uniqueIntValue];
    

    0 讨论(0)
提交回复
热议问题