在UITableViewcell中滚动时,UITableView单元格内容是否正在消失和重叠? [英] UITableView cell Contents are disappearing and overlapping when scrolled in UITableViewcell?

查看:200
本文介绍了在UITableViewcell中滚动时,UITableView单元格内容是否正在消失和重叠?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有自定义单元格的UITableView,这些单元格包含一些textFields,分段索引和all.Once我输入数据特定单元格文本字段和分段索引之后我滚动tableview数据内容消失和重叠。任何人都告诉我如何解决问题以及如何编码。

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.

推荐答案

在UITableViewCell中使用IBOutlet,因为如果创建分段控件,则将textfield作为子视图向下滚动后,每次滚动时都会将其添加为子视图。

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.

这篇关于在UITableViewcell中滚动时,UITableView单元格内容是否正在消失和重叠?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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