swift4
xcode9.2
podfireにてpod "RAMAnimatedTabBarController"インクルード、pod install済みです。
このサイトの UITabBarItemとアニメーションオブジェクトを接続する で躓いています。
ストーリーボードでは、TabBarControllerから3枚のビューをsegueしていて、
それぞれのカスタムクラスは、今のところサイトの説明通り全てRAMAnimatedTabBarControllerを設定しています。
何か他に設定すべき点を教えて頂きたいです。
よろしくお願いします。
現時点ではまだカスタムクラスにコネクトしていませんが、下記のコードを載せます。
(MyTabBarController) import UIKit import RAMAnimatedTabBarController class MyTabBarController: RAMAnimatedTabBarController { override func viewDidLoad() { super.viewDidLoad(); func backAction(_ sender: Any) { self.navigationController?.popViewController(animated: true) } } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } override func tapHandler(_ gesture: UIGestureRecognizer) { super.tapHandler(gesture) print(selectedIndex) //print 0 if you tap tabBarItem of FirstViewController } }
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2017/12/20 09:21