Issue
I started taking a look on the Swift Programming Language
, and somehow I am not able to correctly type the initialization of a UIViewController
from a specific UIStoryboard
.
In Objective-C
I simply write:
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"StoryboardName" bundle:nil];
UIViewController *viewController = [storyboard instantiateViewControllerWithIdentifier:@"ViewControllerID"];
[self presentViewController:viewController animated:YES completion:nil];
Can anyone help me on how to achieve this on Swift?
;
! ;) Would you mind elaborating on theas UIViewController
? Why is that necessary? – Brownnose