###前提・実現したいこと
drawerControllerを使用して、スライドメニューを作成しました。以下のサイトを参考に作りました。
スライドメニューのview(Left Menu View Controller)にtableviewを作って、didSelectRowAtでタップされたら画面遷移させる様にさせたいです。
ここで、スライドメニューからの画面遷移先として、上の写真のAnimated tabbar Controllerに紐ずいているviewControllerに画面遷移させたいのですが、うまく画面遷移しましせん。
tabberControllerは、以下のサイトを参考にしました。
https://dev.classmethod.jp/smartphone/iphone/ios_swift_animated_tab_bar/
どの様にすれば、いいでしょうか。
if let TabBarConroller = self.storyboard?.instantiateViewController(withIdentifier: "TabBarConroller") as? RAMAnimatedTabBarController { TabBarConroller.selectedIndex = 1 } let storyboard = UIStoryboard(name: "Main", bundle: nil) let HomeViewController = storyboard.instantiateViewController(withIdentifier: "SearchViewController") self.tabBarController?.present(HomeViewController, animated: false, completion: nil) self.evo_drawerController?.toggleDrawerSide(.left, animated: true, completion: nil) print("データ: (HomeViewController)") print("0番目")
こんな感じで、コードを作成しました。tabbarcontrollerの2番目の画面に遷移させたいのですが、画面遷移せず、1番目の画面になってしまいます。
ご教授よろしくお願いします。
あなたの回答
tips
プレビュー