开发者

UITableView releasing unnaccurately its content

开发者 https://www.devze.com 2023-02-14 18:22 出处:网络
i have a UITableView within a UIViewController that shows a set of data. The funny thing happening here is that everytime cellForRowAtIndexPath: calls dequeueReusableCellWithIdentifier: it returns nil

i have a UITableView within a UIViewController that shows a set of data. The funny thing happening here is that everytime cellForRowAtIndexPath: calls dequeueReusableCellWithIdentifier: it returns nil so the table's content is being reset all the time. Other table views in my app work just fine, i must be missing something here.

Does anyone have any clue why this could be happening?

Thanks in advance

PS: I use the recommended init method for the cell: - (id)initWithStyle:(UITableViewCellStyle)style reuseId开发者_运维知识库entifier:(NSString *)reuseIdentifier


Are you passing the same cell reuse identifier to dequeReusableCellWithIdentifier: as you are when you construct the cell?

0

精彩评论

暂无评论...
验证码 换一张
取 消