ReusableCellWithIdentifier issue in cellForRowAtIndexPath

前端 未结 2 1007
有刺的猬
有刺的猬 2020-12-21 11:41

In my app I have one imageView and one UILabel. For ImageView I have assigned asynch Image to it and it works fine, But the first and Last row\'s Labels get overlapped when

2条回答
  •  滥情空心
    2020-12-21 12:22

    You're adding nameLabel to the cell whether it was freshly created or reused. So yeah, every time you scroll a reused cell into view, it's going to pile on another label.

提交回复
热议问题