質問編集履歴
3
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -58,15 +58,15 @@
|
|
58
58
|
|
59
59
|
func getFirst() -> aViewController {
|
60
60
|
|
61
|
-
return storyboard!.instantiateViewControllerWithIdentifier("nextA") as! aView
|
61
|
+
return storyboard!.instantiateViewControllerWithIdentifier("nextA") as! aViewController
|
62
62
|
|
63
63
|
}
|
64
64
|
|
65
65
|
|
66
66
|
|
67
|
-
func getSecond() -> bView {
|
67
|
+
func getSecond() -> bViewController {
|
68
68
|
|
69
|
-
return storyboard!.instantiateViewControllerWithIdentifier("nextB") as!
|
69
|
+
return storyboard!.instantiateViewControllerWithIdentifier("nextB") as! bViewController
|
70
70
|
|
71
71
|
}
|
72
72
|
|
2
よりコードを具体的に
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,6 +18,10 @@
|
|
18
18
|
|
19
19
|
aViewController.swiftにて
|
20
20
|
|
21
|
+
class aViewController:UIViewController{
|
22
|
+
|
23
|
+
・・・
|
24
|
+
|
21
25
|
@IBAction func section1Button(sender: AnyObject) {
|
22
26
|
|
23
27
|
//この呼び出し方ではエラー(unexpectedly found nil while unwrapping an Optional value)がでてしまいました
|
@@ -25,6 +29,10 @@
|
|
25
29
|
PageViewController().getSecond()
|
26
30
|
|
27
31
|
}
|
32
|
+
|
33
|
+
・・・
|
34
|
+
|
35
|
+
}
|
28
36
|
|
29
37
|
```
|
30
38
|
|
1
タイトル修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
[iOS]PageViewController
|
1
|
+
[iOS]PageViewController内をボタン押下のみで遷移する方法[Swift2]
|
test
CHANGED
File without changes
|