I'm trying to use the answer accepted here: Dynamic UIMenuItems with @selector and dynamic methods 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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With