iphone界面元素的尺寸,转载,以备查询。

原文地址:

http://www.idev101.com/code/User_Interface/sizes.html

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界面元素的大小

    本文章转自apple官方网站,特此声明 禚来强 Sizes of iPhone UI Elements Element Size (in points) Window (including statu ...

  2. html拖拽显示获取坐标,html界面元素拖拽实现[超简单]

    就是一个十分简单的小功能,将一个html界面元素从一个地方拖到另一个地方(复制或移动) html部分,省略部分非关键代码 A股 拖拽js部分, 即监听部分 $('#ma').bind('dragsta ...

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

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

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

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

  5. iPhone/iPad/Android UI尺寸规范 UI尺寸规范,UI图标尺寸,UI界面尺寸,iPhone6尺寸,iPhone6 Plus尺寸,安卓尺寸,iOS尺寸...

    iPhone/iPad/Android UI尺寸规范 UI尺寸规范,UI图标尺寸,UI界面尺寸,iPhone6尺寸,iPhone6 Plus尺寸,安卓尺寸,iOS尺寸 iPhone界面尺寸 设备 分辨 ...

  6. android 界面大小设置在哪里,移动应用界面设计的尺寸设置及规范

    刚接触移动应用的界面设计,最先跳入脑海的疑问是:画布尺寸设计多大(特别是Android).图标和字体大小怎么定.需要设计多套设计稿么.如何切图以配合开发的实现? 本篇将结合iOS和android官方的 ...

  7. 最新最全移动端界面设计UI尺寸规范-2018年初版

    一.UI尺寸基础知识 1.像素密度-PPI 像素密度是指显示屏幕每英寸的长度上排列的像素点数量,PPI(Pixels per inch)越高代表屏幕显示效果越精细,Retina屏比普通屏清晰很多,就是 ...

  8. 移动端界面设计之尺寸篇

    画布尺寸: 新建750×1334  分辨率72,像素/英寸. 常见的字体大小: 24px.26px.28px.30px.32px.34px,36px等等.记住是偶数的.最小字号20px. 字体: 中文 ...

  9. 移动应用界面设计的尺寸规范

    移动应用的界面设计画布尺寸设计多大(特别是Android).图标和字体大小怎么定.需要设计多套设计稿么.如何切图以配合开发的实现? 本篇将结合iOS和android官方的设计规范.搜集的资料以及工作中 ...

最新文章

  1. DOTA系列 食尸鬼(小狗)攻略
  2. dword类型和十进制有什么区别_微信小商店有几种类型,有什么区别?
  3. Navicat工具、pymysql模块
  4. PostgreSQL 10.1 手册_部分 II. SQL 语言_第 12 章 全文搜索_12.4. 额外特性
  5. linux下查看cpu信息
  6. java 旅游管理系统
  7. openCV 下载地址
  8. 一文读懂民航客机飞控系统
  9. 计算机图形图像设计构图的基本形式,构图一学就会!构图基本形式只有四种
  10. 前端之jquery基础
  11. Android浮窗权限判断
  12. Elasticsearch:理解 Elasticsearch 中的 Percolator 数据类型及 Percolate 查询
  13. mockJs文档(二)
  14. Triton服务器部署Yolov5s模型应用
  15. 高通--PMIC修改(三)
  16. 串联谐振耐压试验装置技术参数和特点,如何选择
  17. 具备统一门户功能的内网即时通讯软件才是发展趋势
  18. 12个简单步骤让你成为黑客
  19. 2016 Multi-University Training Contest 2 部分题解
  20. 教练技术培训系列篇一——执行力

热门文章

  1. vert.x中future的简单使用
  2. 帮助你拿到offer的金融测试面试题
  3. 笔记本上搭建yum源
  4. 计算机网络的安全目标要求网络,国家制定并不断完善(),明确保障网络安全的基本要求和主要目标,提出重点领域的网络安全政策、工作任务和措施。 - 众答网问答...
  5. 软考和 PMP考哪个比较好?各自的价值是什么?
  6. 读计算机专业广东那间学校好,读计算机专业广东省中职3+2学校那个好
  7. windows服务器dmp文件分析,如何用WinDbg分析MEMORY.DMP文件
  8. STM32f103ZET6引脚通道(ADC和TIM)
  9. C语言每日一练——第64天:自动发牌程序
  10. python赋值法例子_大佬们 我是刚开始学python的小白 遇到这种赋值方式 实在不懂这个a+b是赋值给谁的 求解...