HTML5   发布时间:2022-04-27  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了ICON 设置大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

转自:http://blog.csdn.net/wswqiang/article/details/6705169

ICON 设置 官网文档:http://developer.apple.com/library/ios/#qa/qa1686/_index.html  

iPhone、iPad通用的设置

图片大小 (pX)

文件

用途

重要程度

512x512

iTunesArtwork

iTunes 商店中展示

在iTunes获取iTunesArtwork图片

①打开iTunes,点击左侧的iTunes Store,在选中的应用图标上右键 拷贝链接

之后在浏览器中打开链接(这个链接是应用在AppStore上的介绍页面

如:http://itunes.apple.com/cn/app/pocket-rpg/id411690524?mt=8

②在显示页面中,用浏览器上带的开发工具,定位到页面左上角

175×175的应用ICON

如:http://a3.mzstatic.com/us/r1000/089/Purple/43/61/36/mzl.gvbidihl.175x175-75.jpg

之后将这个链接中的175x175改成512x512后,再打开就得到了对应的

iTunesArtwork图片

http://a3.mzstatic.com/us/r1000/089/Purple/43/61/36/mzl.gvbidihl.512x512-75.jpg

可以没有,推荐有

如果没有,在ituens中就不能显示图标,如图:


未知风格,是因为 Ad Hoc版本,就是测试版,

没有正式发布到App Store 上 

57x57

Icon.png

iPhone/iPod touch上的App Store以及Home界面

这个真得有

114x114

Icon@2x.png

iPhone 4(高分辨率)的Home 界面

可以没有,推荐有

72x72

Icon-72.png

兼容iPad的Home界面

可以没有,推荐有

29x29

Icon-small.png

Spotlight搜索以及设置界面

可以没有,推荐有

50x50

Icon-small-50.png

兼容iPad的Spotlight搜索

如果有设置束,最好有

58x58

Icon-small@2x.png

iPhone 4(高分辨率)的Spotlight搜索和设置界面

如果有设置束,最好有


专为iPad的应用程序

图片大小 (pX)

文件

用途

重要程度

512x512

iTunesArtwork

iTunes 商店中展示

可以没有,推荐有

72x72

Icon-72.png

App Store以及iPad上的Home界面

这个真得有

29x29

Icon-small.png

iPad上的设置界面

如果有设置束,最好有

50x50

Icon-small-50.png

兼容iPad的Spotlight搜索

可以没有,推荐有


现在不提供iPhone4的必须图标Icon@2x.png,将通不过App Store的审核,所以,现在Icon@2x.png也是必须的了。

iPhone tab bar Item image

Standard display
  48x32 .PNG,24-bit with transparency (but use only 1 color). Worst case size ~500 bytes. 这个试了下,感觉有点大
  30x30 .PNG,24-bit with transparency (but use only 1 color). Worst case size ~350 bytes. 标准的设置

ReTina display 
  60x60 .PNG,24-bit with transparency (but use only 1 color). Worst case size ~2000 bytes.


http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UITabBarItem_Class/Reference/Reference.html

iphone启动页面,Default.png

延长Default.png显示的时间

在delegate.m加入线程延迟

-(Bool)application:(UIApplication *)application didFinishLaunchingWithOptions:  (NSDictionary *)launchOptions

{

   [NSThread sleepForTimeInterval:10];

   .............

}

应用的Default.png图片显示的时间 和 机器加载应用的速度成正比,加载越快,显示的时间越短,加载越慢,显示的时间越长,

感觉快的话,可以用上面方法延长它的显示时间


iOS设备现在有三种不同的分辨率:

iPhone 320x480, 

iPhone 4 640x960, 

iPad 768x1024。

以前程序的启动画面(图片)只要准备一个Default.png就可以了,但是现在变得复杂多了。

如果一个程序,既支持iPhone又支持iPad,那么它需要包含下面几个图片

Default-PorTrait.png iPad专用竖向启动画面 768x1024或者768x1004

Default-Landscape.png iPad专用横向启动画面 1024x768或者1024x748

Default-PorTraitUpsideDown.png iPad专用竖向启动画面(Home按钮在屏幕上面),可省略 768x1024或者768x1004

Default-LandscapeLeft.png iPad专用横向启动画面,可省略 1024x768或者1024x748

Default-LandscapeRight.png iPad专用横向启动画面,可省略 1024x768或者1024x748

Default.png iPhone认启动图片,320x480或者320x460

Default@2x.png iPhone4启动图片640x960或者640x920


为了在iPad上使用上述的启动画面,你还需要在info.plist中加入

key: UISupportedInterfaceOrientations。

同时,加入值

UIInterfaceOrientationPorTrait

UIInterfaceOrientationPorTraitUpsideDown

UIInterfaceOrientationLandscapeLeft

UIInterfaceOrientationLandscapeRight。

iPhone上实现Default.png动画
原理:
添加一张和Default.png一样的图片,对这个图片进行动画,从而实现Default动画的渐变消失的效果
操作:
在- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions中添加如下代码
 // Make this interesTing.
    UIImageView *splashView = [[UIImageView alloc] initWithFrame:CGRectMake(0,320,480)];
    splashView.image = [UIImage imagenamed:@"Default.png"];
    [self.window addSubview:splashView];
    [self.window bringSubviewToFront:splashView];
    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationDuration:2.0];
    [UIView setAnimationTransition:UIViewAnimationTransitionNone forView: self.window cache:YES];
    [UIView setAnimationDelegate:self]; 
    [UIView setAnimationDidStopSELEctor:@SELEctor(startupAnimationDone:finished:context:)];
    splashView.alpha = 0.0;
    splashView.frame = CGRectMake(-60,-85,440,635);
    [UIView commitAnimations];
就ok了



Sizes of iPhone UI Elements


iPhone开发中经常用到的控件尺寸大集合 - 钧 - 钧的博客__侧面

Element Size (in points)
Window (including status bar) 320 x 480 pts
Status Bar
(How to hide the status bar)
20 pts
View inside window 
(visible status bar)
320 x 460
Navigation Bar 44 pts
Nav Bar Image /
Toolbar Image
up to 20 x 20 pts (transparent PNG)
Tab Bar 49 pts
Tab Bar Icon up to 30 x 30 pts (transparent PNGs)
Text Field 31 pts
Height of a view inside 
a navigation bar
416 pts
Height of a view inside 
a tab bar
411 pts
Height of a view inside 
a navbar and a tab bar
367 pts
PorTrait Keyboard height 216 pts
Landscape Keyboard height 140 pts
Points vs. Pixels
The iPhone 4 introduced a high resolution display with twice the pixels of prevIoUs iPhones. However you don't have to modify your  code to support high-res displays; the coordinate system goes by points rather than pixels,and the dimensions in points of the screen and all UI elements remain the same.
iOS 4 supports high resolution displays (like the iPhone 4 display) via the  scale property on UIScreen,UIView,UIImage,and CALayer classes. If the object is displaying high-res content,its scale property is set to 2.0. Otherwise it defaults to 1.0.
All you need to do to support high-res displays is to provide @2x versions of the images in your project. See the  checklist for updating to iOS4 or  Apple documentation for  Supporting High Resolution Screens for more info.
AdjusTing Sizes
Click here to see how to adjust  View Frames and Bounds.
Additional References

大佬总结

以上是大佬教程为你收集整理的ICON 设置全部内容,希望文章能够帮你解决ICON 设置所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:icon设置