Skip to content

Instantly share code, notes, and snippets.

@veeneck
Created April 8, 2014 18:01
Show Gist options
  • Select an option

  • Save veeneck/10164054 to your computer and use it in GitHub Desktop.

Select an option

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