Is it possible to use old styled controls for iOS on xCode 5.0?

你说的曾经没有我的故事 提交于 2019-12-23 05:29:06

问题


The new look of iOS 7 is too different from previous versions. Is it possible to use old styled controls on iOS 7 on xCode 5.0?


回答1:


It's based on the SDK you're building against, so if you build against the iOS 6.X SDK instead of the iOS 7 SDK it should use the iOS 6.X look and feel. There's some information on how to do that here: Is it possible to install iOS 6 SDK on Xcode 5?

It's non-trivial though, and means you can't use any of the features introduced in the iOS 7 SDK. As long as you're comfortable with that then it's a good choice, the other thing to do would be to create your own variants of the iOS components with the same look that you want, which is a large amount of work.




回答2:


Sure, but you need to copy the SDK from the previous xCode, I have both (xCode 4, xCode 5)

Copy this

/Applications/Xcode 4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk

to

/Applications/Xcode 5.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/

and copy this:

/Applications/Xcode 4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk

to

/Applications/Xcode 5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/

and, in your project change the "Base SDK" (on Build Settings) to iOS 6.1 instead of latest



来源:https://stackoverflow.com/questions/18769417/is-it-possible-to-use-old-styled-controls-for-ios-on-xcode-5-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!