Skip to content

Instantly share code, notes, and snippets.

@streeter
Created March 31, 2014 17:03
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 streeter/9896990 to your computer and use it in GitHub Desktop.
Save streeter/9896990 to your computer and use it in GitHub Desktop.
Reference to initialize code in Objective-C
/**
* More documentation on the initialization sequence here: http://stackoverflow.com/a/8979982/357985
*/
__attribute__((constructor)) static void CJSInitializationFunction(void) {
@autoreleasepool {
// Code here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment