iOS 5.1 with Xcode 4.2 and retina in iPad 3

后端 未结 4 2111
伪装坚强ぢ
伪装坚强ぢ 2020-11-29 17:55

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 iPho

相关标签:
4条回答
  • 2020-11-29 18:21

    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.

    0 讨论(0)
  • 2020-11-29 18:29

    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

    0 讨论(0)
  • 2020-11-29 18:34

    @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`
    
    0 讨论(0)
  • 2020-11-29 18:34

    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)

    0 讨论(0)
提交回复
热议问题