Changing story board swift error

I keep getting this error when i run the app and yes i do have a view controller named view controller]


2015-07-02 09:32:50.060 Impossible Puzzle[222:6023] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Storyboard (<UIStoryboard: 0x16e4d170>) doesn't contain a view controller with identifier 'ViewController''

*** First throw call stack:

(0x26d9c6f3 0x38072df7 0x2b5bb7dd 0x57e7c 0x5936c 0x2af4bc61 0x2af4b951 0x2af52351 0x2af4f9a3 0x2afc369d 0x2b1e08dd 0x2b1e41e3 0x2b1f62a9 0x2b1e1bcf 0x2ee420b5 0x2ee42391 0x26d5f713 0x26d5f303 0x26d5d63f 0x26caf929 0x26caf71d 0x2afb8157 0x2afb2a1d 0x5d144 0x387be873)

libc++abi.dylib: terminating with uncaught exception of type NSException

this is my code


let storyboard = UIStoryboard(name: "mainpad", bundle: nil)

let controller = storyboard.instantiateViewControllerWithIdentifier("ViewController") as UIViewController

self.presentViewController(controller, animated: true, completion: nil)

The "identifier" is not the class name; it's the value you enter in the Identity / Storyboard ID box in the Identity inspector in your storyboard. Make sure that value matches exactly (capitalization, leading/trailing spaces etc.)

When i do this on the self.presentviewcontoller line it says


"Thread 1:EXC_BAD_ACCESS (CODE=2, adress=0x192fe4)"

Changing story board swift error
 
 
Q