Re: Compiler error - method not found on object which conforms to protocol
Alex Zavatone
Hi. I’m late to the discussion, but have you put the property or method on the class?
toggle quoted message
Show quoted text
When you have a class that conforms to a protocol, my understanding is that you cross your heart and swear to die that you will make sure that the class doing the conforming will implement those methods/properties. I’m not sure if this would work with inherited methods or properties as I’ve never tried it. Now, if a method missing for a property (if it is implemented), I’d expect it would be accessor methods. If your conforming class has the property declared, try creating the set and bet methods. If the property isn’t declared, try declaring it and I’d expect Objectice-C to auto declare the accessors. If it doesn’t, then add them to see if the error goes away. Best of luck, Alex Zavatone
|
|