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: