- 浏览: 570817 次
- 性别:
- 来自: 广州
文章分类
最新评论
-
JYY282:
[i][/i]
Ecshop与Shopex的比较 -
qq247890212:
我也遇见这问题了,真诡异。重新下载个猫换了就好了。 太浪费时间 ...
诡异:ClassNotFoundException: org.springframework.web.filter.CharacterEncoding
From: http://www.cocoachina.com/bbs/read.php?tid=59387&page=1
Sizes of iPhone UI Elements
Points vs. Pixels
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 Imageup 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 bar416 pts Height of a view inside
a tab bar411 pts Height of a view inside
a navbar and a tab bar367 pts Portrait Keyboard height 216 pts Landscape Keyboard height 140 pts
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."
发表评论
-
Objective-C 与 C++ 的异同
2013-04-02 12:03 1363http://www.cnblogs.com/y041039 ... -
Cocos2D-X是全球知名的开源跨平台手机游戏引擎
2013-01-22 10:05 2713http://www.oschina.net/p/cocos ... -
iOS Keyboard 键盘高度变化 自适应
2013-01-15 15:43 3223[[NSNotificationCenter default ... -
iOS使用自定义字体
2012-11-27 12:11 12085From: http://blog.csdn.net/csy1 ... -
4 款类似 Facebook/Path 切换效果的 iOS 组件
2012-11-27 12:03 2102From: http://blog.csdn.net/lia ... -
Path 2.0的UI界面设计详细介绍
2012-11-27 11:56 1431如Path的创始人Dave Morin ... -
史上最全的App Store邮箱列表
2012-11-27 11:51 1233From: http://roybaby.blog.51cto ... -
iOS从info.plist 获取项目的名称及版本号
2012-11-16 10:54 1583From: http://blog.sina.com.cn/s ... -
MapKit annotation drag and drop with callout info update
2012-10-13 10:38 2367http://hollowout.blogspot ... -
NSArray 或NSDictionary 调用writeToFile方法失败原因
2012-08-31 10:03 4426NSArray 或NSDictionary 调用writeTo ... -
如何让IOS应用从容地崩溃
2012-08-30 15:25 1576From: http://www.cocoachina.com ... -
iOS中判断设备系统版本
2012-08-29 17:17 31671在iOS开发中,经常要考虑系统的向下兼容,如果使用 ... -
iOS 汉字转拼音
2012-08-21 16:42 1432From: http://www.cnblogs.com/v2 ... -
iOS模拟器截图工具
2012-08-17 16:35 1594From: http://magicalboy.com/ios ... -
XCode下的iOS单元测试
2012-08-10 17:47 1127From: http://mobile.51cto.com/ ... -
AFNetworking
2012-08-08 10:54 4629AFNetworking on github: https:/ ... -
Wrapping Conventions
2012-08-01 15:54 781Wrapping Conventions ... -
Core Animation如何使显式动画结束时的值直接作用Layer
2012-08-01 14:51 3753(1)使用隐式动画会直接改变layer的属性值,如: ima ... -
How To Debug Memory Leaks with XCode and Instruments Tutoria
2012-07-31 16:30 1021From: http://www.raywenderlich. ... -
Using Properties in Objective-C Tutorial
2012-07-31 16:27 882From: http://www.raywenderlich. ...
相关推荐
iphone开发控件大全,介绍常用控件的属性,方法,可以在开发过程中查阅
iphone中的基础控件UIButton, 适合初学者,主要学习UIButton的常用属性设置、方法调用、点击事件等
iphone开发的各种控件的使用代码,适合新手使用学习
iphone开发 星星 评分控件,在cocochina上看到的一个好资源,和大家分享下
iPhone开发书籍大集合,包含: 《Xcode开发员入门引导》 《Objective-C 第一版》 《iPhone开发入门》 《iphone开发秘籍》 《iPhone开发基础教程》 《Object-C的语法与Cocoa框架_V1.0》
刚开始接触iphone开发不久,很多控件不会写,收集的各类常用控件的Demo,方便新手同学们查阅,学习.
iphone开发的各种控件的测试,实例代码
iPhone开发中一个类似其他语言中的combox控件
iphone开发过程中控件的使用方法的源代码 包括了所有控件
iphone中的基础控件UITableView,适合初学者,主要学习UITableView的常用属性设置、自定义分区标题、cell显示定义、索引列显示、索引列点击事件等。 通讯录按照首字母分区显示,右边显示索引列(A、B、C、D……X、Y...
iphone开发常用知识点总结,非常有用。
iPhone开发常用控件的参考 从官网搜索,生成的PDF
iphone中的基础控件UINavigationController,适合初学者,主要学习UINavigationController的基本属性和常用方法调用。 UINavigationController也是一种常用的容器,跟前边学过的tabbar差不多,在这个容器中可以添加...
iphone 开发源码 新手大集合.如果你将里面的工程代码完全参透,你可以跨入高手的行列
iphone中的基础控件UILable, 适合初学者,主要学习UILable的常用属性设置
iPhone开发【四】常用控件之ActionSheet与AlertView
iphone中的基础控件UISlider,适合初学者,主要学习UISlider的常用属性设置、点击事件、以及替换滑块图片等
iphone中的基础控件UIAlertView,适合初学者,主要学习UIAlertView的常用属性设置、点击事件、添加其他视图到UIAlertView上等
iphone中的基础控件UIPageControl,适合初学者,主要学习UIPageControl的常用属性设置、点击事件、以及和scrollView结合可以实现应用首次使用时图片帮助效果等
iphone中的基础控件UITextField,适合初学者,主要学习UITextField的常用属性设置、text改变事件、密码输入框、输入时键盘控制、return后隐藏键盘等