HTML5   发布时间:2022-04-27  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了iOS常用控件尺寸大集合大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
元素控件 尺寸(pts)
Window(含状态栏) 320 x 480
Status Bar的高度 20
Navigation Bar的高度 44
含Prompt的Navigation Bar的高度 74
Navigation Bar的图标 20×20(透明的png)
Tool Bar的高度 Tool Bar的图标 Tab Bar的高度 49
Tab Bar的图标 30×30(透明的png)
竖直时键盘的高度 216、252(iOS 5+的中文键盘
水平时键盘的高度 162、198(iOS 5+的中文键盘
















iPhone App Icon:

图标名称
尺寸 用途 是否必需
Icon.png 57×57 App Store和iPhone、iPod touch桌面显示
Icon@2x.png 114×114 Icon.png的高清模式 Icon-small.png 29×29 “设置”应用和Soptlight搜索
Icon-small@2x.png 58×58 Icon-small.png的高清模式

iPad App Icon:

Icon-72.png 72×72 iPad桌面显示 Icon-50.png 50×50 Spotlight搜索 Icon-29.png “设置”应用 iPhone、iPad通用App Icon:

iPad的Soptlight搜索
“设置”应用和iPhone、iPod touch的Soptlight搜索

iOS常用控件尺寸大集合


iOS常用控件尺寸大集合

延伸阅读:Points Vs. Pixels

@H_874_305@

    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 @R_674_10943@klist for updating to iOS4 or Apple documentation for SupporTing High Resolution Screens for more info.

译:
iPhone 4引入了高分辨率显示器两倍的像素的以前的iPhone。但是你不需要修改代码支持高分辨率显示器;坐标系统的流逝点而不是像素,在屏幕的尺寸点和所有UI元素保持不变。
  
  iOS 4支持高分辨率显示器(像iPhone 4显示)通过在UIScreen scale特性,CALayer类。如果对象是显示高清晰的内容,其规模属性设置为2.0。否则它的认值为1.0。
  所有您需要做的来支持高分辨率显示器是提供@2x版本的图像在您的项目中。看到检查表更新到iOS4或苹果文档支持高分辨率屏幕获取更多的信息。
原文连接:http://dangpu.sinaapp.com/?p=59

大佬总结

以上是大佬教程为你收集整理的iOS常用控件尺寸大集合全部内容,希望文章能够帮你解决iOS常用控件尺寸大集合所遇到的程序开发问题。

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

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