2012年11月12日 星期一

[Xcode] Upgrade App to iPhone5

1. Update Xcode to 4.5 & OS X to 10.8 for iOS6
2. Check machine name

machineName()
{
    struct utsname systemInfo;
    uname(&systemInfo);

    return [NSString stringWithCString:systemInfo.machine
                              encoding:NSUTF8StringEncoding];
}



@"i386"      on the simulator
@"iPod1,1"   on iPod Touch
@"iPod2,1"   on iPod Touch Second Generation
@"iPod3,1"   on iPod Touch Third Generation
@"iPod4,1"   on iPod Touch Fourth Generation
@"iPhone1,1" on iPhone
@"iPhone1,2" on iPhone 3G
@"iPhone2,1" on iPhone 3GS
@"iPad1,1"   on iPad
@"iPad2,1"   on iPad 2
@"iPad3,1"   on iPad 3 (aka new iPad)
@"iPhone3,1" on iPhone 4
@"iPhone4,1" on iPhone 4S
@"iPhone5,1" on iPhone 5

if iPhone5 then do action ...

3. Give launch image for myImage-568h@2x.png
4. Change UIView or UIImage of background as Autosizing.
    Adjust the origin of each component.
5. Test simulator and real iOS device to check without errors.

沒有留言:

張貼留言