I want to know what is the difference between @synthesize and @dynamic? I read about them in the documentation but could not glean too much from it. I just want a simple explanation for it.
I will be greatful for any help.
I want to know what is the difference between @synthesize and @dynamic? I read about them in the documentation but could not glean too much from it. I just want a simple explanation for it.
I will be greatful for any help.
@dynamic is a promise that you will provide the setters/getters dynamically during runtime, whereas @synthesize tells the compiler to create the setters/getters for you.
By far, the more commonly used will be @synthesize.