UITableView cell Contents are disappearing and overlapping when scrolled in UITableViewcell?

浪子不回头ぞ 提交于 2019-12-24 10:47:04

问题


I have a UITableView with custom cells,those cells contain some textFields,segmented index and all.Once i entered the data in particular cell textfield and segmented index after that i scrolled the tableview data contents disappears and overlapping.Can anyone tell me how to resolve the issue and how should i code.


回答1:


Use IBOutlet in UITableViewCell because if you create segmented control,textfield as subviews after scrolling down they will be added as subviews every time you Scroll.



来源:https://stackoverflow.com/questions/25403147/uitableview-cell-contents-are-disappearing-and-overlapping-when-scrolled-in-uita

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!