Skip to content

Instantly share code, notes, and snippets.

@veeneck
Created April 8, 2014 18:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veeneck/10164054 to your computer and use it in GitHub Desktop.
Save veeneck/10164054 to your computer and use it in GitHub Desktop.
Class from string
// Instead of a switch on each name, use string directly.
_thisClass = NSClassFromString(@"DynamicStringRepresentingClass");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment