0
1

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.

siwft辞書「tab barを実装する」

Last updated at Posted at 2021-02-23

お断り

この記事は自分専用メモなのですごい初歩的な事しか書いていませんがご了承下さい。
確認環境
Interface:Storyboard
Life Cycle:UIKit App Delegate
Language:Swift
◉Use Core Data
__◉Host in CloudKit
◉Include Tests

この記事で出来る様になる事

LINEに有る様なtab Barを使える様になる

UIの実装

まず現在あるView Controllerを削除して下さい。そうしたらTab Bar Controllerを配置します。
スクリーンショット 2021-02-23 20.35.11.png
この様になったら成功です。次に出ているエラーを解決していきます。エラーをdeepl翻訳にぶっ込んで見るとエントリポイントが無いと怒られている事が分かります。それではgoogleでエントリポイントを追加する方法を調べて見ましょう。「xcode エントリポイント」と検索して見るとこのようなサイトが出来てきました。詳しくはそちらのサイトを見て欲しいのですが、is Initial ViewControllerにチェックを入れるとエラーが無くなりました。スクリーンショット 2021-02-23 20.45.22.pngひとまずこれでtab barの実装は完成です。最後にtab barのアイテムを追加して見ましょう。新規のView Controllerを配置します。次にTab Bar Controllerから先ほど配置したViewControllerに向かってcontrolを押しながらドラックします。そうすると色々選択肢が出てくるのでview controllersを選択してくださいこれで追加が出来ました。これで実装が完成しました。
スクリーンショット 2021-02-23 21.02.19.png

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?