- 浏览: 585970 次
- 性别:
- 来自: 广州
-
文章分类
最新评论
-
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 1485http://www.cnblogs.com/y041039 ... -
Cocos2D-X是全球知名的开源跨平台手机游戏引擎
2013-01-22 10:05 2775http://www.oschina.net/p/cocos ... -
iOS Keyboard 键盘高度变化 自适应
2013-01-15 15:43 3335[[NSNotificationCenter default ... -
iOS使用自定义字体
2012-11-27 12:11 12173From: http://blog.csdn.net/csy1 ... -
4 款类似 Facebook/Path 切换效果的 iOS 组件
2012-11-27 12:03 2218From: http://blog.csdn.net/lia ... -
Path 2.0的UI界面设计详细介绍
2012-11-27 11:56 1487如Path的创始人Dave Morin ... -
史上最全的App Store邮箱列表
2012-11-27 11:51 1286From: http://roybaby.blog.51cto ... -
iOS从info.plist 获取项目的名称及版本号
2012-11-16 10:54 1699From: http://blog.sina.com.cn/s ... -
MapKit annotation drag and drop with callout info update
2012-10-13 10:38 2432http://hollowout.blogspot ... -
NSArray 或NSDictionary 调用writeToFile方法失败原因
2012-08-31 10:03 4520NSArray 或NSDictionary 调用writeTo ... -
如何让IOS应用从容地崩溃
2012-08-30 15:25 1634From: http://www.cocoachina.com ... -
iOS中判断设备系统版本
2012-08-29 17:17 31730在iOS开发中,经常要考虑系统的向下兼容,如果使用 ... -
iOS 汉字转拼音
2012-08-21 16:42 1485From: http://www.cnblogs.com/v2 ... -
iOS模拟器截图工具
2012-08-17 16:35 1688From: http://magicalboy.com/ios ... -
XCode下的iOS单元测试
2012-08-10 17:47 1190From: http://mobile.51cto.com/ ... -
AFNetworking
2012-08-08 10:54 4663AFNetworking on github: https:/ ... -
Wrapping Conventions
2012-08-01 15:54 869Wrapping Conventions ... -
Core Animation如何使显式动画结束时的值直接作用Layer
2012-08-01 14:51 3807(1)使用隐式动画会直接改变layer的属性值,如: ima ... -
How To Debug Memory Leaks with XCode and Instruments Tutoria
2012-07-31 16:30 1071From: http://www.raywenderlich. ... -
Using Properties in Objective-C Tutorial
2012-07-31 16:27 951From: http://www.raywenderlich. ...
相关推荐
这个集合中的7个源码实例很可能涵盖了以下关键知识点: 1. **事件驱动编程**:C#中的事件处理机制是构建用户界面的基础,通过事件监听和处理,可以实现用户交互,如按钮点击、屏幕滑动等。 2. **控件布局管理**:...
本章将介绍使用Interface Builder设计UI,包括控件的使用(如按钮、标签、文本框等),以及Auto Layout和Size Classes,确保应用在不同屏幕尺寸上表现良好。 3. **Chapter 4 - 数据管理**:iOS 5引入了Core Data,...
在实际开发中,我们常常会用到Foundation框架,它包含了基本的数据类型、集合类(如NSArray、NSDictionary)、线程管理等核心功能。UIKit框架则是iOS开发的核心,提供了界面构建和用户交互的接口,如...
iOS 几大框架汇总 iOS 框架是一个目录,这个...此外还有其他一些重要的框架,如 Core Animation 框架和 OpenGL ES 框架,它们都是 iOS 开发中经常用到的框架。了解这些框架可以帮助开发者更好地开发 iOS 应用程序。
这两种组件都是苹果提供的用于显示可滚动数据集合的视图控件。对于九宫格,UICollectionView更为灵活,因为它允许更复杂的布局,比如自定义单元格大小和排列方式。 在描述中提到的“点击有提示,可以改变标签文字”...
最后的"小图标.rplib"是通用的小图标集合,包含各种日常设计中可能用到的元素。 这些组件库覆盖了原型设计中的多个方面,无论是基础的界面元素,还是复杂的交互动作,都有相应的图标供设计师选择。对于Axure的新手...
9. 响应式设计:源码可能考虑了不同屏幕尺寸和设备方向的适配,确保在iPhone和iPad上都能良好显示,并且在横屏和竖屏之间能平滑切换。 10. 版本控制:作为开源项目,KNMultiItemSelector可能使用Git进行版本控制,...