简体   繁体   中英

UIButton doesn't get iOS 6 styling in compatibility mode in iOS 7

I am working on an app that has not yet been redesigned for iOS 7. There are a few new features being added that I want to deliver in an app update, but I want the app to run in iOS 6 "compatibility mode" on iOS 7. I have set the Base SDK to iOS 6.1. When I build and run everything looks fine in the iOS 6 Simulator. However, in the iOS 7 Simulator, all elements look iOS 6-ish with the exception of the UIButtons which are all borderless.

Is this expected behavior, or am I doing something wrong?

I tested this using a simple app with one button and one switch.

iOS 6 Simulator:

iOS 6

iOS 7 Simulator:

IOS 7

Notice how the switch remains iOS 6-like in iOS 7 but the button does not.

From my experience you need to work and submit the app using xCode 4.6 if you want to retain the iOS 6 UI. Testing is a little tedious in iOS 7 but you can do it but installing the ad hoc app on your iOS 7 device.

Update

as @rmaddy mentions in the comments, you can build directly from Xcode 4.6 to iOS 7. Use your iOS 7 device with xCode 5 before doing so.

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