tags:

views:

28

answers:

1

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?

+2  A: 

Add #include <objc/runtime.h> to the top of your implementation file (.m or .c).

Jonathan Grynspan