iOS常用控件尺寸大集合
| 元素控件 | 尺寸(pts) |
|---|---|
| Window(含状态栏) | 320 x 480 |
| Status Bar的高度 | 20 |
| Navigation Bar的高度 | 44 |
| 含Prompt的Navigation Bar的高度 | 74 |
| Navigation Bar的图标 | 20×20(透明的png) |
| Tool Bar的高度 | 44 |
| Tool Bar的图标 | 20×20(透明的png) |
| 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 | 29×29 | “设置”应用 | 否 |
iPhone、iPad通用App Icon:
| 图标名称 | 尺寸 | 用途 | 是否必需 |
|---|---|---|---|
| Icon.png | 57×57 | App Store和iPhone、iPod touch桌面显示 | 是 |
| Icon-72.png | 72×72 | iPad桌面显示 | 是 |
| Icon-50.png | 50×50 | iPad的Soptlight搜索 | 否 |
| Icon-29.png | 29×29 | “设置”应用和iPhone、iPod touch的Soptlight搜索 | 否 |
延伸阅读: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.
原文出处:http://dangpu.sinaapp.com/?p=59
iOS常用控件尺寸大集合的更多相关文章
- [ios2] iOS常用控件尺寸大集合 【转】
元素控件 尺寸(PTS) Window(含状态栏) 320 x 480 Status Bar的高度 20 Navigation Bar的高度 44 含Prompt的Navigation Bar的高度 ...
- Xamarin Studio在Mac环境下的配置和Xamarin.iOS常用控件的示例
看过好多帖子都是Win环境装XS,Mac只是个模拟器,讲解在Mac环境下如何配置Xamarin Studio很少,也是一点点找资料,东拼西凑才把Xamarin Studio装在Mac上跑起来,如下: ...
- iOS常用控件-UIScrollView
一. 常见属性 @property (nonatomic) CGPoint contentOffset; //记录UIScrollView滚动的位置 @pro ...
- iOS常用控件-UITableViewCell
一. 封装cell: 1.加载xib文件的两种方式 <方式1> (NewsCell是xib文件的名称) NSArray *objects = [[NSBundle mainBundle] ...
- iOS 常用控件集合 完整项目
[Swift]高仿 爱范儿3.0 http://www.code4app.com/forum.php?mod=viewthread&tid=10053&page=1&extra ...
- 【Demo 0006】iOS常用控件
本章学习要点 1. 了解iOS中控件继承关系: 2. 掌握UIControl基础知识; 3. 掌握UIButton基本用法: 4. 掌握UILa ...
- iOS 常用控件 参数
1.StatusBar 20px 2.TableViewCell 44px 3.TabBar 49px 4.NavigationBar 44px 5.NaviBarIcon 20*20px 6.Tab ...
- iOS开发-UI (一)常用控件
从这里开始是UI篇 知识点: 1.常用IOS基本控件 2.UITouch ======================= 常用基本控件 1.UISegmentedControl:分段控制器 1)创建方 ...
- iOS常见控件的基本使用
UI相关类继承关系 UIView 常见属性和方法 UIView属性 UIView方法 UIControl 常用控件 UIImageView 图片显示控件android ImageView UISlid ...
随机推荐
- MTK6577+Android之Camera驱动
MTK6577+Android之Camera驱动 <MTK安卓平台的Camera效果在线调试> 1. Camera拍照相关概念 1.1 ISP isp--(Image Signa ...
- Java-HttpSession监听
//HttpSession监听 public interface HttpSessionActivationListener extends EventListener { /** Notificat ...
- OpenCV GUI基本操作,回调函数,进度条,裁剪图像等
代码为转载,出处找不到了,不贴了 工具条进度条: // ConvertColor.cpp : 定义控制台应用程序的入口点. // #include "stdafx.h" #incl ...
- -lt -gt -ge -le -eq的意义
脚本如下:#!/bin/bashx=0while [ $x -lt 10 ]doecho $xx=`echo "$x+1" | bc`done 请问这里的-lt是什么意思,请大家指 ...
- PS 滤镜算法原理——碎片效果
%%% Fragment %%% 对原图做四个方向的平移,然后对平移的结果取平均 %%% 碎片效果 clc; clear all; Image=imread('4.jpg'); Image=doubl ...
- OpenCV kmeans代码
代码:出处忘了 // // Example 13-1. Using K-means // // /* *************** License:************************* ...
- OpenCV——PS 图层混合算法 (三)
具体的算法原理可以参考 PS图层混合算法之三(滤色, 叠加, 柔光, 强光) // PS_Algorithm.h #ifndef PS_ALGORITHM_H_INCLUDED #define PS_ ...
- nasm预处理器(2)
多行宏 %macro: %macro foo 2 push rax push rbx mov rax,%1 mov rbx,%2 pop rbx pop rax %endmacro 宏名称后的数字代表 ...
- ruby抓取web页面
一种方法是Net::HTTP.new方法,返回resp码和实际的data: require 'net/http' h = Net::HTTP.new("www.baidu.com" ...
- ruby直接字符串压缩与解压缩
ruby2.1.3的核心类中包含了Zlib库,其中的Zlib模块包含了对字符串压缩和解压的方法: irb(main):180:0> Zlib.class => Module irb(mai ...