开发者

Why is UITableViewCell text floating to top on the device?

开发者 https://www.devze.com 2022-12-24 04:35 出处:网络
The text lables in my UITableViewCells are getting displayed differently on the dev开发者_StackOverflow中文版ice than on the sim. How do I fix it? I assume you\'re running at most iPhone OS 3.1.2.

The text lables in my UITableViewCells are getting displayed differently on the dev开发者_StackOverflow中文版ice than on the sim. How do I fix it?


I assume you're running at most iPhone OS 3.1.2.

I asked this question already. You are likely using the UITableViewCellStyleValue1 style for your cells. The solution is to set cell.detailTextLabel.text to something other than nil.

I filed a bug a few months ago with Apple. I recently got an e-mail from Apple that said the bug should be fixed in the next SDK, but I haven't yet tested it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号