質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
-
ここで、スライドメニューからの画面遷移先として、上の写真のtabbarControllerに紐ずいているviewControllerに画面遷移させたいのですが、
|
19
|
+
ここで、スライドメニューからの画面遷移先として、上の写真のAnimated tabbar Controllerに紐ずいているviewControllerに画面遷移させたいのですが、うまく画面遷移しましせん。
|
20
20
|
|
21
21
|
|
22
22
|
|
@@ -30,36 +30,34 @@
|
|
30
30
|
|
31
31
|
|
32
32
|
|
33
|
-
|
34
|
-
|
35
|
-
ご教授よろしくお願いします。
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
###追記
|
40
|
-
|
41
33
|
```
|
42
34
|
|
43
|
-
|
35
|
+
if let TabBarConroller = self.storyboard?.instantiateViewController(withIdentifier: "TabBarConroller") as? RAMAnimatedTabBarController {
|
44
36
|
|
45
|
-
|
37
|
+
TabBarConroller.selectedIndex = 1
|
46
38
|
|
47
|
-
|
39
|
+
}
|
48
40
|
|
49
|
-
|
41
|
+
|
50
42
|
|
51
|
-
let
|
43
|
+
let storyboard = UIStoryboard(name: "Main", bundle: nil)
|
52
44
|
|
45
|
+
let HomeViewController = storyboard.instantiateViewController(withIdentifier: "SearchViewController")
|
46
|
+
|
53
|
-
self.
|
47
|
+
self.tabBarController?.present(HomeViewController, animated: false, completion: nil)
|
54
48
|
|
55
49
|
self.evo_drawerController?.toggleDrawerSide(.left, animated: true, completion: nil)
|
56
50
|
|
57
|
-
|
51
|
+
print("データ: (HomeViewController)")
|
58
52
|
|
59
|
-
|
53
|
+
print("0番目")
|
60
54
|
|
61
55
|
```
|
62
56
|
|
63
57
|
|
64
58
|
|
65
|
-
こんな感じで、コードを作成しました。
|
59
|
+
こんな感じで、コードを作成しました。tabbarcontrollerの2番目の画面に遷移させたいのですが、画面遷移せず、1番目の画面になってしまいます。
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
ご教授よろしくお願いします。
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -33,3 +33,33 @@
|
|
33
33
|
|
34
34
|
|
35
35
|
ご教授よろしくお願いします。
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
###追記
|
40
|
+
|
41
|
+
```
|
42
|
+
|
43
|
+
// cellタップされた時の処理
|
44
|
+
|
45
|
+
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
|
46
|
+
|
47
|
+
switch indexPath.row {
|
48
|
+
|
49
|
+
case 0:
|
50
|
+
|
51
|
+
let MainViewController = self.storyboard?.instantiateViewController(withIdentifier: "HomeViewController")
|
52
|
+
|
53
|
+
self.evo_drawerController!.centerViewController = MainViewController
|
54
|
+
|
55
|
+
self.evo_drawerController?.toggleDrawerSide(.left, animated: true, completion: nil)
|
56
|
+
|
57
|
+
self.tabBarController?.navigationController?.present(MainViewController!, animated: true, completion: nil)
|
58
|
+
|
59
|
+
}
|
60
|
+
|
61
|
+
```
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
こんな感じで、コードを作成しました。しかし、新しいviewが作成されて、tabbarをタップした時の様なviewの表示になりません。
|