iOS 5.1 with Xcode 4.2 and retina in iPad 3

流过昼夜 提交于 2019-11-26 10:16:09

问题


i have a Mac with Mac OS X Snow Leopard, can i add iOS 5.1 to it?

With the new resolution for iPad 3, how we will do with images, because if the app will run in iPhone 3GS, 4 and iPad 3 i think we should have 3 images with different name like @3x.png or .. thank you.


回答1:


iOS 5.1 comes with Xcode 4.3.1 which is only available for Lion — the only download available in the Developer section on Apple's Developer portal for iOS 5.1.

Basically, the iPad images are going to be double the size of the image you would normally create for the iPad. For instance:

Launch images

iPhone: : 320 x 480

iPhone @2x: 640 x 960

iPad: 768 x 1004 (portrait), 1024 x 748 (landscape)

iPad @2x: 1536 x 2008 (portrait), 2048 x 1496 (landscape)

Per Apple

Get your app ready for the new iPad.

To ensure your iOS 5 apps are optimized for the new iPad, review the updated iOS Human Interface Guidelines and iOS App Programming Guide.

  • iOS Human Interface Guidelines

  • iOS App Programming Guide

iOS SDK Release Notes for iOS 5.1

With this software you can develop applications that run on iPhone, iPad, or iPod touch running iOS 5.1. You can also test your applications using the included iOS Simulator, which supports iOS 5.1. iOS SDK 5.1 requires a Macintosh computer running OS X 10.7 (Lion).

Naming Scheme:

This seems to be the naming scheme for the new retina graphics for the new iPad.

icon@2x~iphone.png; icon@2x~ipad.png




回答2:


@WrightCS's answer handles the part about the images perfectly well.

However, you can get the simulator and SDK to run on Snow Leopard.

  1. Download Xcode version 4.3.1 bypassing the AppStore from here http://developer.apple.com/downloads
  2. Open up the package and copy

    /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Develop‌​er/SDKs/iPhoneOS5.1.sdk
    to 
    /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk
    
  3. Copy

    /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceS‌​upport/5.1
    to
    /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176
    
  4. Copy

    /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/‌​Developer/SDKs/iPhoneSimulator5.1.sdk
    to 
    /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1‌​.sdk
    

Adapted from here.

Edit: Get your iPad Retina on by copying

/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app
to
/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app`



回答3:


You will probably also want to copy the 5.1 docset to be able to view the most recent documentation within Xcode:

Copy

/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS5_1.iOSLibrary.docset
to
/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS5_1.iOSLibrary.docset                      

And be sure to restart Xcode.




回答4:


You will need 4 resolutions most likely for some items and 2 for others.

1- iPhone 2- iPhone Retina (@2x.png files)

You only need these if you're scaling up the resolution if the old graphic for retina iPhone works you probably want to use that for your iPad UI. Specifics like app icons are a different beast and you will need 4.

3- iPad 4- iPad Retina (@2x.png files)



来源:https://stackoverflow.com/questions/9611596/ios-5-1-with-xcode-4-2-and-retina-in-ipad-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!