本文章转自apple官方网站,特此声明 禚来强

Sizes of iPhone UI Elements

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

  • Apple Documentation: Points vs. Pixels
  • Apple Documentation: UIBarButtonItem Class Reference says "Typically, the size of a toolbar and navigation bar image is 20 x 20 points."
  • Apple Documentation: UITabBarItem Class Reference says "The size of an tab bar image is typically 30 x 30 points."

iphone界面元素的大小相关推荐

  1. iphone界面元素的尺寸[转]

    iphone界面元素的尺寸,转载,以备查询. 原文地址: http://www.idev101.com/code/User_Interface/sizes.html Element Size (in ...

  2. iPhoneUI元素的大小

    最近工作中经常涉及的到iphone界面元素尺寸单位问题,特此整理,希望能给大家些帮助. Element元 Size (in points)大小 Window (including status bar ...

  3. JMeter5.2.1 改变界面元素大小和BodyData(消息体数据)字体大小

    目录 一.问题描述 二.解决办法 解决方式一 解决方式二 (1)改变界面元素大小 (2)改变"消息体数据"(BodyData)代码字体大小 一.问题描述 二.解决办法 解决方式一 ...

  4. iPhone 界面尺寸以及各种图表尺寸

    iPhone界面尺寸 设备 屏幕尺寸 开发尺寸 状态栏高度 导航栏高度 tab栏 高度 高宽比 iPhone 4/4S 3.5英寸  320*480 40px 88px 98px 0.66 iPhon ...

  5. 手机设计尺寸 - iPhone界面尺寸

    参考网址: http://www.qijishow.com/down/app-index.htm iPhone界面尺寸 设备 分辨率 PPI 状态栏高度 导航栏高度 标签栏高度 iPhone6 plu ...

  6. Android 和 iPhone 界面布局示例

    下图是根据Android和iPhone这两个平台的"生产内容型的应用程序"整理出来的界面布局示例.所对比的4个点,均是两大平台的应用程序常规界面元素. 状态栏: Android和i ...

  7. ios 自动缩小字体_技巧:如何改变iPhone上的字体大小

    腾讯数码讯(编译:李斯特)最近收到不少朋友关于iPhone默认字体大小的抱怨:虽然iOS默认字号设置是经过精心设计的,但是对于一些用户来说,默认的字号还是显得偏小,导致信息或者其他界面的文字看起来比较 ...

  8. 【2k-3k高分辨率界面调整】jmeter3.3 win10界面元素调整,界面兼容,jemter文字太小

    jmeter5.4.1资源下载(界面大小已调整好,适用于高分辨率2k-3k显示屏,1k的可以自行调整参数)-其它文档类资源-CSDN下载 本人电脑配置:华为笔记本2018 matebook pro 3 ...

  9. TeeChart界面元素使用说明(区域填充、Marks、Annotation)

    TeeChart界面元素使用说明 面积填充 ​ 仪表日常应用中经常会出现面积计算的场景,因此在谱图中填充面积可以更加直观地展示对应的面积区域. ​ TeeChart工具箱(https://blog.c ...

最新文章

  1. 返回一个二维整数数组中最大联通子数组的和
  2. 30 个 OpenStack 经典面试问题和解答
  3. jvm垃圾回收参数配置
  4. elixir 高可用系列(五) Supervisor
  5. 反引号包裹反引号_五个金色反引号
  6. NHibernate3.0剖析:Query篇之NHibernate.Linq标准查询
  7. python 创建二维list,Python创建二维数组(关于list的一个小坑)
  8. Netty工作笔记0064---WebSocket长连接开发3
  9. 空调开28度,一晚上会消耗多少电?空调耗电量与什么有关?
  10. 【ajax】前端ajax传值的几种方法
  11. stm32c语言arctan函数,超高速的反正切算法,纯整数运算
  12. SQL Server数据库表锁定原理以及如何解除表的锁定
  13. LIRe提供的6种图像特征描述方法的评测
  14. 我如何学习:开篇 先提升下肾上腺素
  15. webpack分离打包css和less
  16. 用户名 不在 sudoers 文件中。此事将被报告。
  17. python手机版教程视频_Python教学app下载
  18. 转载 基于MATLAB 进行图像分类
  19. QT Creator 5.1.2中英文切换
  20. mysql没有data文件夹

热门文章

  1. MIMIC-III 数据集处理 | OverflowError: Overflow in int64 addition 解决方法
  2. 2019海南大学计算机研究生分数线,2021海南大学研究生分数线一览表(含2019-2020历年复试)...
  3. 取出汉字的拼音首字母
  4. 谷歌浏览器提示“要恢复页面吗?Chrome未正确关闭”
  5. 【例26图片的加密解密操作】
  6. Gym102870 2020-2021 “Orz Panda” Cup Programming Contest 补题记录
  7. hadoop集成kerberos
  8. 使用Notepad++将windows格式转为linux 的unix
  9. (课程笔记)Learn How to Learn: Powerful mental tools to help you master tough subjects
  10. arcgis地形hgt数据转tif