質問編集履歴
1
as? → as!
title
CHANGED
File without changes
|
body
CHANGED
@@ -17,7 +17,7 @@
|
|
17
17
|
}
|
18
18
|
|
19
19
|
override func prepareForSegue(segue:UIStoryboardSegue,sender:AnyObject!){
|
20
|
-
var newVC:SecondViewController = segue.destinationViewController as
|
20
|
+
var newVC:SecondViewController = segue.destinationViewController as! SecondViewController
|
21
21
|
// ↑このSecondViewControllerに対して Use of undeclared type "SecondViewController"といったエラーが出てしまいます。
|
22
22
|
newVC.label = self.myText.text
|
23
23
|
}
|