uitableviewcell 中的标签未清除
我只是向表视图单元格添加两个可用项,当我在表视图中重新加载数据时,向该标签添加名称和数字无论我从表视图中添加还是删除联系人,标签中的数据都是重叠的,这意味着不重新加载标签...直到视图重新加载...
任何人都可以帮助我如何克服这个...
i just add two uilables to table view cell add names and numbers to that lables when i reload the data in table view that meal whether i add or delete a contact from the table view the data in the lables are ovelaping that mean not reloading the lables ... untill the view is reload .....
can any any one please help me how to overcome this....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
某种代码肯定有助于解决您的问题。只需尝试粘贴您的 cellForrowAtIndexPath 方法即可清楚您使用代码做什么?
另一件事是重叠和重叠。 重新加载表格
重新加载是不同的事情。您无法重新加载标签,但尝试使用[yourTableObject reloadData]
;在添加或删除或更新表数组的方法中。
Some kind of code will definitely help to solve ur problem.Just try to paste ur cellForrowAtIndexPath method to make it clear what r u doing with Code?
One more thing the Overlapping & reloading are different things.You can't reload the Label but try to reload the table using
[yourTableObject reloadData];
in the methods where you do add or delete or where your array for table gets update.