阅读背景:

自定义UITableViewCell中的视图约束在计算单元重用中重置

来源:互联网 

I'm running into issues with displaying an ImageView in a custom table cell. I'm trying to do the following: In the cellForRowAtIndexPath I check wether the user ID matches that of the id inside a reservation object. If so, an ImageView (hidden by default) is to be made visible on the right side of the cell. This all works fine until iOS starts reusing the cells. On cells that are being reused, the ImageView always ends up on the left side of the cell, instead of the right side (its normal position). I'm trying to find out why this is happening but I'm not having much luck. I would appreciate some help with this.I'm running into issues with displaying an Imag




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: