Add methods to obejct at runtime in Objective-C
Рубрики: Apple, iPad, iPhone, Mac OS X on Nov.02, 2010
Please, read this post for more understanding… Function for add method to object is class_addMethod Adds a new method to a class with a given name and implementation. 1BOOL class_addMethod(Class cls, SEL name, IMP imp, const char *types) Parameters cls The class to which to add a method. name A selector that specifies the name [...]
