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.
Apple の新しい技術であるサイズ クラスを使用したいのですが、iPhone のサイズを選択すると、ビューの幅が 400p で、iPhone の幅が 320p である理由がわかりません。誰にもアイデアがありますか?
感謝
アダプティブ アプリの開発に関する WWDC ビデオをご覧ください。基本的に、縦向きのiPhoneは通常の高さとコンパクトな幅のサイズクラスがあります。Apple が幅 350pt の新しい電話を導入する可能性があるため、これは実際のピクセル寸法とは関係ありませんが、サイズ クラスは同じなので、コードは機能します。
WWDC セッション ビデオを見て、サイズクラスと自動レイアウトを組み合わせてアプリを作成してください。