UITextView当放在UITableViewCell有时不显示内容 [英] UITextView when put in a UITableViewCell sometimes do not display the content
问题描述
我想知道其他人是否也面临同样的问题。我有一个UITextView字段放置在UITableViewCell。有时它不显示文本。当我点击或滚动表视图,它出现。任何猜测?
I wonder if anyone else is facing the same issue. I have a UITextView field placed in a UITableViewCell. Sometimes it does not displays the text. When i click or scroll the table view, it appears. Any guesses?
详细信息:
在 viewDidLoad 方法中调用Web服务检索一些数据。在接收数据时,我设置了 UILabel 和 UITextView 的值。 UILabel 值看起来不错,但是在移动到子视图或向上或向下滚动以重新访问 UITextView / em>。我在 UITableViewCell 中显示 UILabel 和 UITextView 我在 UILabel 和 UITextView 中设置值后立即调用 [tableView reloadData],但是我不重新创建 UITableViewCell <
I call a method in viewDidLoad method that calls a web service to retrieve some data. On receiving the data, i set the values of UILabel and UITextView. UILabel values appear fine, but the UITextView (sometimes) do not show the value until i move to subview or scroll up and down to revisit the area contaning UITextView. I'm showing UILabel and UITextView objects in UITableViewCell. I call [tableView reloadData] right after setting values in UILabel and UITextView, but i do not re-create the UITableViewCell.
感谢您的回复和指针。
推荐答案
我通过调用 [myTableView reloadData];
这篇关于UITextView当放在UITableViewCell有时不显示内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!