Author | Message |
---|---|
jpascua
Posts: 197
|
Posted 09:24 Jul 04, 2016 |
I'm trying to figure out what's causing these errors without any luck. Do you have any suggestions? |
HeavyTech
Posts: 6
|
Posted 09:46 Jul 04, 2016 |
You need to make your view controller appear. I believe the correct way is to use the self.presentViewController(controller, animated: true, completion: nil) That should fix one of your errors. |
msargent
Posts: 519
|
Posted 10:33 Jul 04, 2016 |
controller = ... is not typed correctly. It should look like this: let controller = self.storyboard?.instantiateViewControllerWithIdentifier("DiceViewController") as! DiceViewController Also, whenever you see (nameOfVar: Var Type), that refers to the method definition (Xcode inserts this to tell you which kind of object to put in --- you have to put an actual argument in place of that, like (myVariable). |