1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[Swift] Tab Bar Controller の使い方

Posted at

Tab Bar Controller とは

このように切り替えができるあれです!
使っているアプリとかを良く見ると、あると思います。
今回はこれについて書いていきます。
ezgif.com-gif-maker.gif

使い方

使い方はシンプルな気がします。
まず、初期であるviewControllerを消します。
次に、Tab Bar Controllerを置きます。
スクリーンショット 2020-12-17 23.21.45.png
viewControllerを消したので初期画面が設定されてない状態です。なので初期画面をTab Bar Controllerに設定します。
Tab Bar Controllerを選択して、右の欄のIs Initial View Controllerにチェックを入れます。
スクリーンショット 2020-12-17 23.24.31.png
ファイルを作成して、それぞれの画面に割り当てます。
スクリーンショット 2020-12-17 23.27.38.png
Cocoa Touch Class を作成。
スクリーンショット 2020-12-17 23.28.08.png
ファイルを割り当てます。
スクリーンショット 2020-12-17 23.30.49.png
それぞれの画面に割り当てられたら、完了です。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?