The prequel for this question is here.
I have a class (A) and the class has category. In the category I've defined and implemented a method.
Now I am trying in (let's assume B) class to call [a someMethod]. My B class can't reach this method. Isn't possible to call the category meths from some other class?
You didn't show your code, but in the .m file that refers to the category method, you do need to import the header of the file that defines the category interface.
If you define a category in a .m file, you will not be able to call the category's methods from outside of that .m file.
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