2012年5月19日

iPhone 4的解析度及元素大小


idev101.com這篇文章記錄iPhone大部分的元素大小,基本上這個圖就解釋了大半,在看下面這個表就一清二楚了。

有興趣看英文資料的可以參考 idev101.com











下列表是以iPhone4為準的元素大小,至於iPhone4s就是把所有的元素大小都乘以2就是了,所以window size 就是640 x 960pts。

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 Bar44 pts
Nav Bar Image /
Toolbar Image
up to 20 x 20 pts (transparent PNG)
Tab Bar49 pts
Tab Bar Iconup to 30 x 30 pts (transparent PNGs)
Text Field31 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 height216 pts
Landscape Keyboard height162 pts

1 則留言: