tags:

views:

47

answers:

1

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.

+3  A: 

@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.

Darryl H. Thomas