LoginSignup
1
2

More than 3 years have passed since last update.

swift UITabBarを使ってメニュー画面遷移を実装

Last updated at Posted at 2019-10-25

UITabBarの使い方を画面下部にメニュー作成する例で解説。
ユーティリティーエリアにてtabbar選択ドラッグ、エディエリアのViewController下部へセット
スクリーンショット 2019-10-25 13.01.35.png
下記の様にセット更にTabBarItem選択TabBar上にItemを追加セットする。
スクリーンショット 2019-10-25 13.02.08.png
実際のにメニューとしてiconImageをAssets.xcassetsに登録。
スクリーンショット 2019-10-25 13.59.55.png
スクリーンショット 2019-10-25 13.38.46.png
スクリーンショット 2019-10-25 14.02.52.png
各TabBarItemにtag番号を設定してしてメニュー切り替えのIDとする。
スクリーンショット 2019-10-25 14.03.38.png
スクリーンショット 2019-10-25 14.04.01.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