We can use generated code like nonatomic, atmoic, retain without writing any lines of code. We also have getter and setter methods. To use this, you have 2 other ways: @synthesize or @dynamic: @synthesize, the compiler will generate the getter and setter automatically for you, @dynamic: you have to write them yourself.
Liked By
Write Answer
What is use of @Synthesize?
Join MindStick Community
You have need login or register for voting of answers or question.
Sunil Singh
21-Apr-2015We can use generated code like nonatomic, atmoic, retain without writing any lines of code. We also have getter and setter methods. To use this, you have 2 other ways: @synthesize or @dynamic: @synthesize, the compiler will generate the getter and setter automatically for you, @dynamic: you have to write them yourself.