表格视图中的值在第11行之后重复 [英] value in the Table view is repeating after the 11th row

查看:51
本文介绍了表格视图中的值在第11行之后重复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是iphone初学者,我想以编程方式创建表格.在表中,我们占据了20多个行.但是我有一个问题,在第11行之后重复相同的值.

I am beginner iphone developer I want created table in programatically. In the table we take more than 20 row. But i have some problem that after 11th row the same value repeated.

plz帮助我提供代码和其他方法

plz help me with code and other method

推荐答案

您可能想看看

You may want to look at this question which is the same problem. In that case, the person was setting the text of the cell only when creating a new cell (when nil was returned from [tableView dequeueReusableCellWithIdentifier:].) It needs to be set every time the tableView:cellForRowAtIndexPath: is called.

这篇关于表格视图中的值在第11行之后重复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆