Last active
December 10, 2015 09:08
-
-
Save burczyk/4411960 to your computer and use it in GitHub Desktop.
iOS macro for easy instantiate UIViewController by name.
Usage: INSTANTIATE(@"MyViewController");
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define INSTANTIATE(viewController) [[UIStoryboard storyboardWithName:@"MainStoryboard_iPhone" bundle:nil] instantiateViewControllerWithIdentifier:viewController]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment