IOS6 and IOS7 Code matching (1)

Source: Internet
Author: User

After the launch of Apple's iOS7, there is a natural need for all applications-adapting to different versions of the SDK. For now, applications built with the IOS6 SDK can run on the iOS7 system, keeping the original styling on the UI, which is backwards compatible with Apple, but don't underestimate Apple's determination to push iOS7-Apple's announcement, starting February 1, 2014, AppStore does not accept submissions that are not XCODE5.

In this way, Apple to all developers left is Huashan a road-upgrade your system, Mac10.9 free release, you have to make what?

Although the introduction of each version of the SDK will have the problem of adaptation, but personally feel that the IOS7 SDK changes are the largest. To fit iOS7, every application needs to do something:

1. Change of icon

IOS7 's icons and original changes, which are clearly reflected in the XCODE5.

On the iphone, you need to add 120x120 icons, and on the ipad, you need to add 76x76 and 152x152 icons. and the icon style recommended and iOS7 as close as possible, Apple will still help you do fillet (fillet radius is different), but the shadow effect will not help. (design means lying gun)

There is an official document that can be consulted: https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/ Iconmatrix.html#//apple_ref/doc/uid/tp40006556-ch27

2. Start the interface

The start-up interface needs to be enlarged to add the area of the original status bar. If your design is full-screen, this step can be omitted.

3. Retina and 4-inch screen support

The current application of this should be supported, if you do not support IPhone5, AppStore can not be submitted.

4. Adjust layout

Because of the status bar, the origin of the coordinate calculation changes, many times you will find a lot of overlap on the UI, this needs to be adjusted. Due to the simultaneous adaptation of IOS6 and IOS7, this adjustment also has some difficulty.

Apple's official recommendation is to use AutoLayout to help with automatic adaptation (3.5-inch and 4-inch screens). IOS7 inside the AutoLayout function said to enhance a lot of, before I also do not want to use this function, later in the application intends to try.

5. Bar Button

Bar button refers to the system presets used on the toolbar or Navigatorbar buttons, the UI has a significant change, the size of a certain change, Tintcolor also become bartintcolor.

6. Details of other UI

The UI changes really a lot, the big frame will not change, but the details of the change a lot, this also can not be poor, plan to slowly summarize the back, to share their encounters.

When the IOS6 application runs on a iOS7 system , it simulates a iOS6 environment, so the application still has a materialized display, and the UI controls show the IOS6 style. But Apple officials say it is less efficient, and it is not recommended to do so, and the transition will gradually diminish.

But my iOS6 application also has an exception when it runs on the iOS7 system. The exception appears on the Progressview, and the interface is as thin as the iOS7, and the solution is to explicitly specify the frame in the code.

The iOS system is determined, this can be obtained by [[[[Uidevice Currentdevice] systemversion] floatvalue].

http://blog.csdn.net/sakulafly/article/details/17795285

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.