Last active
December 15, 2015 04:50
-
-
Save rjstelling/5204306 to your computer and use it in GitHub Desktop.
Macros to make Objective-C more C-like. Feel free to fix bugs or add new macros.
This file contains hidden or 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
// Make a [UI]ViewController by just passing the name, the .xib needs to have the same name as the Class howerver (Xcode default) | |
#define MakeViewController(class_and_nib_name) [[class_and_nib_name alloc] initWithNibName:[NSString stringWithUTF8String:#class_and_nib_name] bundle:nil] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment