LoginSignup
0
0

More than 1 year has passed since last update.

【Xcode12,M1】XLPagerTabStripの利用 備忘録

Posted at

Rosettaでターミナルを開く(cocoapodsはインストール済み)

cocoapodsのインストールはここ(一度インストールすればOK,updateは別途)
https://qiita.com/Baaaaaby/items/69424c271a22063ca43a

Terminal
$ cd {パス}
$ pod init
$ open Podfile         //nano も vim 可

Podfile

command+sで保存

Podfile.rb
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'                 # "#"を削除

target 'XLtest' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for XLtest
  pod 'XLPagerTabStrip'             #この行を追加

end

ターミナルに戻る

Terminal
$ pod install
$ exit
[プロセスが終了しました]

Xcode

以下に従う

https://qiita.com/KikurageChan/items/35593dc3aac8d694db8e

ーー変更点ーー
Storyboard ID にそれぞれFirst Second Third...追加
階層(左下のタスク一覧みたいなアイコンから確認可)でButtonBarが隠れるのでそこを訂正
UICollection ViewのCellは削除

参考

https://qiita.com/KikurageChan/items/35593dc3aac8d694db8e
https://youtu.be/tkR2USQlkHI

環境

Xcode Version 12.5.1 (12E507)
Mac M1,2020
macOS Big Sur バージョン11.5.2

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