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.
私のxcodeでuiviewcontrollerファイルを作成すると、このようにuiviewのサイズがデフォルトのiPhoneの画面サイズよりも大きくなります
なぜそれが発生するのか、どのようにiPhoneのデフォルトサイズにサイズ変更するのかわかりません。
はい、簡単にできます。XIB のビューをクリックして、プロパティ ウィンドウ (右側) の 4 番目のタブに移動します。シミュレートされたメトリックの下で、最初のアコーディオンがサイズ パラメータをチェックし (デフォルトでは「なし」)、XIB が必要な場合は「自由形式」に変更します。カスタムサイズ。