I'm trying to use the answer accepted here: http://stackoverflow.com/questions/3249182/ But it gives a warning (and it doesn't work) of: implicit declaration of function 'class_addMethod'
I have searched google but have no idea?
I'm trying to use the answer accepted here: http://stackoverflow.com/questions/3249182/ But it gives a warning (and it doesn't work) of: implicit declaration of function 'class_addMethod'
I have searched google but have no idea?
Add #include <objc/runtime.h>
to the top of your implementation file (.m or .c).