블로그 이미지
박황기
최근에 스마트폰에 관심이 많습니다. 예전에 상상하던 모습들이 점차 이루어지고 있는게 신기하네요.

calendar

1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30

Notice

2013. 7. 11. 04:34 모바일/아이폰

아이폰도 계속 추가되는 모델이 다양해지고 

디스플레이 사이즈도 다양해져서 여러가지 해상도를 지원하려면 

각디스플레이별로 정해진 규격대로 이미지 리소스를 추가해야 한다.

그렇지 않으면 앱스토어에 배포시에 invalid binaryfile이라는 표시가 나게된다.


아이콘과 런치이미지는 해당사이즈별 접미어를 참고해서 넣는다.

예)640*1136사이즈의 런치 이미지는 아래의 표를 참고해서 

   Default-568h@2x.png 라는 이름으로 추가함. 



Xcode에서 보면 아래와 같이 표시됨.




[아이콘]

  • Icon.png. The name for the app icon on iPhone or iPod touch.

  • Icon-72.png. The name for the app icon on iPad.

  • Icon-Small.png. The name for the search results icon on iPhone and iPod touch. This file is also used for the Settings icon on all devices.

  • Icon-Small-50.png. The name of the search results icon on iPad.


[런치이미지]

Table 5-3  Typical launch image dimensions

Device

Portrait

Landscape

iPhone and iPod touch

320 x 480 pixels

640 x 960 pixels (@2x)

Not supported

iPhone 5 and iPod touch (5th generation)

640 x 1136 pixels (@2x)

Not supported

iPad

768 x 1004 pixels

1536 x 2008 pixels (@2x)

1024 x 748 pixels

2048 x 1496 pixels (@2x)

To demonstrate the naming conventions, suppose your iOS app’s Info.plist file included the UILaunchImageFile key with the value MyLaunchImage. The standard resolution version of the launch image would be named MyLaunchImage.png and would be in a portrait orientation (320 x 480). The high-resolution version of the same launch image would be namedMyLaunchImage@2x.png. If you did not specify a custom launch image name, these files would need to be namedDefault.png and Default@2x.png, respectively.

To specify default launch images for iPhone 5 and iPod touch (5th generation) devices, include the modifier string -568himmediately after the <basename> portion of the filename. Because these devices have Retina displays, the @2x modifier must always be included with launch images for the devices. For example, the default launch image name for a device is Default-568h@2x.png. (If your app has the UILaunchImageFile key in its Info.plist file, replace the Default portion of the string with your custom string.) The -568h modifier should always be the first one in the list. You can also insert other modifiers after the -568h string as described below.

For more information about the UILaunchImageFile key, see Information Property List Key Reference. You can provide localized versions of your launch images if necessary.


---------------------------------------------------------------------------------------------

Table 5-2  Sizes for images in the CFBundleIcons key

Icon

Idiom

Size

Usage

App icon (required)

iPhone

57 x 57 pixels

114 x 114 pixels (@2x)

This is the main icon for apps running on iPhone and iPod touch.

App icon (required)

iPad

72 x 72 pixels

144 x 144 pixels (@2x)

This is the main icon for apps running on iPad.

Small icon for Spotlight search results and Settings (recommended)

iPhone

29 x 29 pixels

58 x 58 pixels (@2x)

This is the icon displayed in conjunction with search results on iPhone and iPod touch. This icon is also used by the Settings app on all devices.

Small icon for Spotlight search results and Settings (recommended)

iPad

50 x 50 pixels

100 x 100 pixels (@2x)

This is the icon displayed in conjunction with search results on iPad.

When specifying icon files using the CFBundleIcons key, it is best to omit the filename extensions of your image files. If you include a filename extension, you must explicitly add the names of all image files (including any high-resolution variants). When you omit the filename extension, the system automatically detects high-resolution variants of your file, even if they are not included in the array.

If your iPhone app is running in iOS 3.1.3 or earlier, the system does not look for icons using your Info.plist file. TheCFBundleIcons key was introduced in iOS 5.0 and the CFBundleIconFiles key was introduced in iOS 3.2. Instead of using these keys, the system looks for icon files with specific filenames. Although the sizes of the icons are the same as those inTable 5-2, if your app supports deployment on iOS 3.1.3 and earlier, you must use the following filenames when naming your icons:

  • Icon.png. The name for the app icon on iPhone or iPod touch.

  • Icon-72.png. The name for the app icon on iPad.

  • Icon-Small.png. The name for the search results icon on iPhone and iPod touch. This file is also used for the Settings icon on all devices.

  • Icon-Small-50.png. The name of the search results icon on iPad.


[참고 URL]

https://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/MobileHIG/TranslateApp/TranslateApp.html#//apple_ref/doc/uid/TP40006556-CH10-SW8

https://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html#//apple_ref/doc/uid/TP40007072-CH6-SW12




'모바일 > 아이폰' 카테고리의 다른 글

IOS 테이블뷰 투명색 적용이 되지 않을때  (0) 2014.10.05
Admob 한국 지원 사이트  (0) 2013.10.01
[애드몹] ACH/Wire 수익 지급 관련  (1) 2013.07.26
[Xcode]Undefined symbols for architecture  (0) 2013.07.13
[ios] admob  (0) 2013.07.10
posted by 박황기