iOS7.0中的UITableView单元格背景差异 [英] UITableView cell background difference in iOS7.0

查看:141
本文介绍了iOS7.0中的UITableView单元格背景差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我用iOS 4.3开始的很多UITableViews制作了这个应用程序。

So I have made this app with a hell of a lot UITableViews that started around iOS 4.3.

过去一周我将iPhone更新为iOS7。 0当我运行我的应用程序(目前正在开发中)时,我的UITableView背景变成了白色,而不是以前工作过的clearcolor。

In the past week I've updated my iPhone to iOS7.0 and when i ran my app (that is currently in development again) and my UITableView backgrounds turned out white instead of the clearcolor that used to work before.

所以我'我们搜索谷歌并得出结论,我们现在应该在细胞水平上做这种颜色。
喜欢这个问题:
​​ UITableView清晰背景

So I've searched google and came to the conclusion that we should now do this color at cellular level. Like in this question: UITableView clear background

我试过了,它运行正常。
然而,当我试图向我的共同开发者解释这种差异时,我无法弄清楚一个奇怪的行为。

I've tried that and it works fine. However when I tried to explain this difference to my co-developers I couldn't figure out a strange behaviour.

在开发过程中,我们使用testflight上传多个可测试版本,以便我们可以调试和跟踪项目。
在本次演讲中,我的一位合作开发人员从我将mac更新到MountainLion,iOS 7.0和xCode5.0之前上传的testflight下载了相同的应用程序。
当他在带有iOS7.0的iPhone上运行它时,UITableView背景是清晰的颜色!

During development we used testflight to upload multiple testable versions so we could debug and keep track of the project. During this talk one of my co-developers downloaded the very same app from testflight that was uploaded before I updated my mac to MountainLion, iOS 7.0 and xCode5.0. And when he ran it on his iPhone with iOS7.0, the UITableView backgrounds were clearcolor!

我的问题是:

我的最新版本之前的版本以及上传到testflight的版本(当我运行Lion,xCode 4.5时)在iOS 7.0的同一iPhone设备上的运行方式不同,然后是我当前编译的版本(来自MountainLion) ,xCode 5.0)?

How can a version that predates my latest build and was uploaded to testflight ( when I was running Lion, xCode 4.5 ) run differently on a same iPhone device with iOS 7.0, then my currently compiled build ( from MountainLion, xCode 5.0 )?

这对我没有意义。
有谁知道为什么这两个版本的工作方式不同?
或者我只是疯了?

It doesn't make sense to me. Does anyone know why these 2 builds are working differently from each other? Or am I just going crazy?

推荐答案

我在我的应用程序中找到了类似这种行为的东西。

I did find something similar to this behavior in my application.

在iOS 7设备中执行应用程序(具有完全相同的代码)的方式因编译而异,具体取决于Xcode版本和iOS SDK)。我的意思是,只有当您使用XCode 5和iOS 7制作应用程序时,才会显示uitableview背景的更改行为。使用旧的Xcode只保留旧的行为(可能向所有实际的应用程序向后兼容)

The way an application (with exactly the same code) is executed in an iOS 7 device, is different depending on the Xcode version and iOS SDK) it is compiled. I mean, the changed behavior of the uitableview background only appears when you use XCode 5 and iOS 7 to make your app. Using an old Xcode just keep the old behavior (maybe to all the actual applications to be backward compatible)

这篇关于iOS7.0中的UITableView单元格背景差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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