Skip to content

Instantly share code, notes, and snippets.

@rjstelling
Last active December 15, 2015 04:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjstelling/5204306 to your computer and use it in GitHub Desktop.
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.
// 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