uitableviewcell 中的标签未清除

发布于 2024-10-21 13:00:15 字数 133 浏览 7 评论 0原文

我只是向表视图单元格添加两个可用项,当我在表视图中重新加载数据时,向该标签添加名称和数字无论我从表视图中添加还是删除联系人,标签中的数据都是重叠的,这意味着不重新加载标签...直到视图重新加载...

任何人都可以帮助我如何克服这个...

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眉黛浅 2024-10-28 13:00:15

某种代码肯定有助于解决您的问题。只需尝试粘贴您的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文