简体   繁体   中英

Can I make my app built with iOS7 SDK look like an iOS 6 app in iOS 7?

I have an app that looks fine on iOS 6 and I'm trying to run as it is on iOS7.

Here's what I've done:

  • At the project and target tab, set the deployment target to 5.1 and 5.1.1 respectively
  • At the File Inspector tab of all my View Controllers, set Opens in "(Default 5.0)" and View as "iOS 6.1 and Earlier"

I have tested it on iPhone 5, 4 and 4s with iOS 7 and it works just fine. But now that I have published my app, it has the iOS 7 look and feel (and a lot of visual bugs caused by this change).

Some things that I noticed:

If I just build my app on Xcode, then later plug the device and run on it, it will have the iOS7 look and feel. But if I just build & run it directly on the device, it works perfectly (iOS 6 look and feel).

OK, my previous answer was wrong/out-dated.

Apple released an announcement stating that as of Feb 1st 2014 all apps running on iOS7 must be optimised for iOS 7.

This means that whether or not it is possible to make it look like iOS6 is irrelevant. If it runs on iOS7 it must be updated for iOS7.

https://developer.apple.com/news/index.php?id=12172013a#top

You can do the following, perhaps in your app delegate's -load method:

[[NSUserDefaults standardUserDefaults] setObject:@YES forKey:@"UIUseLegacyUI"];

However, Apple will most likely reject your app at this point for doing this, because Apple is now rejecting apps that have the old look and feel on iOS 7. Plus this loophole could possibly disappear at some point in the future, so your app could suddenly find itself with the updated look and feel with a future iOS update. But technically, this does make it possible to have the old look and feel when running on iOS 7 and when the app is built with the iOS 7 SDK.

不,sdk7应用程序在ios7上看起来总是像ios7应用程序

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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