1、まずは新規プロジェクトの作成でTabbarを選択します。

2、3つめのViewを追加します
(最初は2つのViewまでが入っています。)
↓こんな感じ。





今日はViewControllerを追加してみました。
これでtab barの中に新しいタブが追加されました。
3、3つめのタブ用のxibと.h、.mファイルを追加します。

新規ファイルの追加から、Objective-cのsubclassを追加します。
ここでオプションのところの.xibのところにチェックを入れるのを
忘れないようにしましょう。
4、次は追加したタブとビュー、ヘッダーファイルたちの接続です。

MainWindow.xibを再度開いて、
追加した3つめのタブを選択します。
ViewControllerのNib nameで、
今追加した3つめのクラスを選択します。

Class IndetityのClassの名前を、
先ほど追加したクラスに指定します。
これで完了です!
0 件のコメント:
コメントを投稿