Skip to content

Instantly share code, notes, and snippets.

@robbywalker
Created January 16, 2013 23:07
Show Gist options
  • Select an option

  • Save robbywalker/4551862 to your computer and use it in GitHub Desktop.

Select an option

Save robbywalker/4551862 to your computer and use it in GitHub Desktop.
NSString *newName = [NSString stringWithFormat:@"CCInstrumentedProxy_%s", class_getName(cls)];
Class subClass = objc_allocateClassPair([CCInstrumentedProxy class], [newName UTF8String], 0);
classes[cls] = subClass;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment