New Features of iOS8 Xcode6

Source: Internet
Author: User

New Features of iOS8 Xcode6



This year's apple press conference has ended, but it seems that people are not very interested in iPhone 6 and iPhone 6 plus, and they are very much looking forward to iWatch. This time, Apple released two types of cell phones with different screen sizes than those of previous models. This is undoubtedly the biggest concern for developers. Will the layout of the previous apps on iPhone 6 and iPhone 6 plus be messy?

Don't worry, Apple will certainly consider these issues:

  • Although the screen resolution has changed a lot, the aspect ratios of the 5, 5 s, 6, and 6 + screens are still the same, all of which are 16: 9. The installation of the previous apps on 6 or 6 + is not affected, the entire screen is scaled proportionally. projects created in versions earlier than Xcode6 run on 6, and their coordinate systems are still the same as those created in Xcode6, their coordinate systems are 5 s, 6, and 6 +;

    We all know the previous coordinate systems are 320*480 and 320*568. What will happen to the new iPhone coordinate system? I created a new project with Xcode6GM, and tested the data on storyboard, code, and xib respectively as follows:

    IPhone6:

    11:15:52. 104 X6Test [1766: 62602] SB screen bounds ={{ 0, 0 },{ 375,667 }}
    11:15:52. 105 X6Test [1766: 62602] SB view bounds ={{ 0, 0 },{ 375,667 }}
    11:15:53. 304 X6Test [1766: 62602] code screen bounds ={{ 0, 0 },{ 375,667 }}
    11:15:53. 305 X6Test [1766: 62602] code view bounds ={{ 0, 0 },{ 375,667 }}
    11:15:57. 913 X6Test [1766: 62602] xib screen bounds ={{ 0, 0 },{ 375,667 }}
    11:15:57. 913 X6Test [1766: 62602] xib view bounds ={{ 0, 0 },{ 600,600 }}

     

    IPhone6Plus

    11:24:07. 164 X6Test [1855: 66991] SB screen bounds ={{ 0, 0 },{ 414,736 }}
    11:24:07. 165 X6Test [1855: 66991] SB view bounds ={{ 0, 0 },{ 414,736 }}
    11:25:06. 637 X6Test [1855: 66991] code screen bounds ={{ 0, 0 },{ 414,736 }}
    11:25:06. 638 X6Test [1855: 66991] code view bounds ={{ 0, 0 },{ 414,736 }}
    11:25:08. 834 X6Test [1855: 66991] xib screen bounds ={{ 0, 0 },{ 414,736 }}
    11:25:08. 834 X6Test [1855: 66991] xib view bounds ={{ 0, 0 },{ 600,600 }}

     

    In addition, if you use Xcode6 to open an old project, the new class coordinate system will be the same as the previous one.

     

    What are the changes in Xcode6?

     

    1. Some options are missing when creating a project, such as the commonly used Empty project:

     

    2. In order to better adapt to the screen size, The Size Option is added in the xib settings:

     

    3. If there is no pch file in the project and you need to create it yourself, how can you compile Xcode yourself before creating it? Set in Build Settings:

     

    4. An xib file is added to the project: LaunchScreen. xib. As the name suggests, it will be called when the program is started. Similar to the previous Launch Image, this xib is more flexible to use:

     

    5. Added startup pictures for iPhone 6 and iPhone 6 + and landscape pictures for iPhone 6 + in Images. xcassets:

     

     

     

Related Article

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.