Point 的觀念英文稱做virtual-pixels-per-inch,在iOS中是以"Point"作為程式中計算長度與寬度的單位,簡單的來說背後的原因在於Point"大約"等於我們實際環境中的距離單位,
舉例來說,若設定欄位的高度為44Point 在iPhone4跟iPhone5的手機上,所觀察到的實際高度會"大致"一樣,下面列出計算過後每英寸所包含的Point數(有小數點結果不是很漂亮,但在設計的時候,通常會用整數來給值):
iPhone 4 (320×480 points) = 164.8 points-per-inch (每英寸的Point數)
iPhone 5 (320×568 points) = 163.0 points-per-inch (每英寸的Point數)
iPhone 6 (375×667 points) = 162.8 points-per-inch (每英寸的Point數)
iPhone 6 Plus (414×736 points) = 153.5 points-per-inch (每英寸的Point數)
iPad Mini (768×1024 points) = 162.0 points-per-inch (每英寸的Point數)
iPad (768×1024 points) = 132.0 points-per-inch (每英寸的Point數)
以上內容參考下面文章:
http://coronalabs.com/blog/2014/10/23/the-point-of-resolution-independence-ios-and-iphone-6-plus/
沒有留言:
張貼留言