紀錄在 raywenderlich 所上的課程
在使用 App 時螢幕的方向性,
Portrait 直立
Landscape 橫豎
依照 App 的使用方式來決定要用哪種,
長寬的計算單位是 Point,在 3GS、早期 iPad 時,One point was one pixel,所以早期的解析度 Resolution 很低,看起來不夠銳利,因為它的 Pixels 很 Big、Chunky,
這裡老師對於 Pixel 的解釋是 It’s the smallest element that a screen is made up of. Changing the color values of these pixels produce a visible image on the display. The more pixels, the better the image looks.
蘋果不斷的再推出新尺寸,one-size-all are long gone.
Remember that iOS works with points instead of pixels, so you only have to worry about the difference between the screen sizes measured in points.
Developers work with points,Designers work with pixels
接著老師回到了原本的 Bull’s Eye 的 Project 裡,進到 Project setting 裡,選擇上面那一列的 General 往下滑倒 Deployment info,將 Device Orientation 裡的 Portrait 給反勾掉然後 Run 一遍後模擬器在 Portrait 模式下也會是 landscape 的樣子。
( Q )照著老師做的之後發現我的 Portrait 還是怪怪的
原本以為是不是自己在亂玩時調到了什麼所以新開了一個 Project 測試結果還是一樣,不確定是不是等到教到 Autolayout 時可以修正這個問題。