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.
.xibファイルなしでUIViewControllerサブクラスを作成しましたが、必要ないと考えています。今では非常に便利だと思いますが、.xibファイルを追加する方法がわかりません。誰か助けてもらえますか?
.xibファイルを作成し、Interface Builderに移動してから、[IdentityInspector]パネルに移動します。カスタムクラスヘッダーの下に「class」というフィールドがあり、ドロップダウンから.xibファイルに追加するクラスを選択します。(xib表示領域の小さなサイドバーでファイルの所有者を選択していることを確認してください)。