简体   繁体   English

现有的iOS 6.x项目和带有XCode 5.x的iOS 7

[英]Existing iOS 6.x project and iOS 7 with XCode 5.x

I have a existing iOS 6.x project that I developed using XCode 4.x and iOS 6.x and haven't had a chance to get to the App store. 我有一个使用XCode 4.x和iOS 6.x开发的现有iOS 6.x项目,还没有机会进入App Store。 I would like to make it work with iOS 7 and also support iOS 6.x devices. 我想使其与iOS 7一起使用,并且还支持iOS 6.x设备。 I opened the project in XCode 5.0.2 and it complies and runs fine. 我在XCode 5.0.2中打开了项目,它可以正常运行。 The only change I think I need to do is UITableView is not looking right as the border lines are off. 我认为我需要做的唯一更改是UITableView看起来不正确,因为边界线已关闭。 I'm building the table view thru code. 我正在通过代码构建表视图。

Also, I'm not using storyboards but using iPhone and iPad specific NIBs. 另外,我不使用情节提要,而是使用iPhone和iPad专用的NIB。

So, what is the recommended approach? 那么,推荐的方法是什么?

Create a new brand project in XCode 5 and create the UI and import the code for the methods OR open the iOS 6.x project in XCode 5 and continue with my updates to the code?. 在XCode 5中创建一个新的品牌项目,并创建UI并导入方法的代码,或者在XCode 5中打开iOS 6.x项目,然后继续我对代码的更新?。 I also wanted to support OS 6.x. 我也想支持OS6.x。 Do I have to download iOS 6.x SDK and test it along with iOs 7 in XCode 5? 我是否必须下载iOS 6.x SDK并在XCode 5中与iOs 7一起对其进行测试?

My 4S is jailbroken and running on iOS 6.1.2 and using jailcoder to run on 4S directly. 我的4S已越狱并在iOS 6.1.2上运行,并使用jailcoder直接在4S上运行。

Please advise. 请指教。

No need to start a new project. 无需启动新项目。 Just open it in Xcode and it will be upgraded. 只要在Xcode中打开它,它就会被升级。 Make sure you compile against the latest Base SDK, while allowing a minimum deployment target of what you need (iOS6/iOS6.1). 确保根据最新的Base SDK进行编译,同时允许所需的最低部署目标(iOS6 / iOS6.1)。 You can use the new preview assistant view in interface builder to simulate how it would look in iOS6 and iOS7. 您可以在界面构建器中使用新的预览助手视图来模拟它在iOS6和iOS7中的外观。 You can set deltas in interface builder to set different values between iOS7 and iOS6. 您可以在界面构建器中设置增量,以在iOS7和iOS6之间设置不同的值。

You can download the iOS6.1 simulator from Xcode 5 settings. 您可以从Xcode 5设置下载iOS6.1模拟器。

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

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