Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
UI 要素の画像をプログラムで設定できるように、Apple Watch が 38mm か 42mm かを知る方法を理解したいと思います。
WKInterfaceDevice授業でわかった
WKInterfaceDevice
NSLog(@"%@", CGRectCreateDictionaryRepresentation([WKInterfaceDevice currentDevice].screenBounds));
42mm { 高さ = 195; 幅 = 156; X = 0; Y = 0; }
38mm { 高さ = 170; 幅 = 136; X = 0; Y = 0; }