Interface Builder(Storyboard)を使わずにTabBarを利用する方法

Interface Builder(Storyboard)を使わずに
TabBarを利用するにはAppDelegate.hとAppDelegate.mにコードを記述します。

▼AppDelegate.h



▼AppDelegate.m



9〜11行目の個別ページ生成部分と、15行目のTabBar生成部分を変更すれば、タブを減らしたり増やしたりすることができます。


Related posts:

  1. Interface Builder (Storyboard) を使わずにUIPickerViewを使う方法
  2. Interface Builder (Storyboard) を使わずにUITableViewを使う方法
  3. UINavigationBarの背景に画像を指定する方法

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

*

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>