简体   繁体   English

UITableView在Simulator iOS 7.0中正确呈现,但不适用于iOS 6.1

[英]UITableView renders correctly in Simulator iOS 7.0, but not for iOS 6.1

I have an iPad app (XCode 5, iOS 7, ARC, Storyboards). 我有一个iPad应用程序(XCode 5,iOS 7,ARC,Storyboards)。 When running the app in the Debugger, Simulator iOS 7.0, it works fine. 在调试器,模拟器iOS 7.0中运行应用程序时,它工作正常。 When running in the Simulator iOS 6.1, I get black cells in the UITableView. 在模拟器iOS 6.1中运行时,我在UITableView中获得黑色单元格。 Here is what I'm talking about: 这就是我在说的:

在此输入图像描述

This is what it's supposed to look like: 它应该是这样的:

在此输入图像描述

Unfortunately, my iPad that I do testing on has iOS 7.0, so there is no way I can test it on 6.1. 不幸的是,我测试的iPad有iOS 7.0,所以我无法在6.1上测试它。 Any ideas how to determine if this will carryover to a live iPad running 6.1? 任何想法如何确定这是否会延续到运行6.1的现场iPad? or should I now set the target iOS to 7.x? 或者我现在应该将目标iOS设置为7.x?

The iOS simulator is usually reasonably accurate, so I'll assume that the same results will appear on an iPad running iOS 6.1. iOS模拟器通常相当准确,因此我假设在运行iOS 6.1的iPad上会出现相同的结果。 You might want to check how the cells appear on an iOS 6.1 storyboard, to make sure that you aren't setting them to black yourself by accident. 您可能想要检查单元格在iOS 6.1故事板上的显示方式,以确保您不会意外地将它们设置为黑色。 If you go to your storyboard's file navigator view, there's an option to view it as iOS 7 or iOS 6.1 and earlier (outlined in red). 如果您转到故事板的文件导航器视图,可以选择将其视为iOS 7或iOS 6.1及更早版本(红色部分)。 故事板屏幕截图

If this isn't the issue, I'd check any code you have that might be affecting the appearance of the cell. 如果这不是问题,我会检查您可能影响单元格外观的任何代码。 I know that the tintColor property, for example, has had its behaviour changed. 我知道tintColor属性已经改变了它的行为。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM