in an .m file I have 4 warnings relating to one command:
@end
-
Property ‘myHeader’ requires method ‘-myHeader’ to be defined – use @synthesize, @dynamic or provide a method implementation
-
Property ‘customCell’ requires the method ‘setCustomCell:’ to be defined – use @synthesize, @dynamic or provide a method implementation
-
Property ‘customCell’ requires method ‘-customCell’ to be defined – use @synthesize, @dynamic or provide a method implementation
-
Property ‘myHeader’ requires the method ‘setMyHeader’ to be defined – use @synthesize, @dynamic or provide a method implementation
I browsed through forums but I am hopeless so far – can you explain to me (beginner programmer…) how to debug it? Thanks a million!
It means that you need to synthesize those variables. Synthesizing creates the setter and getter methods for you. To do this, you need to include the following code in your implementation (.m) file:
Adding these lines should take care of your 4 errors.
You also have the option of defining the setter and getter methods yourself, but unless you want to do something specific, go with @synthesize for now.