Home > DeveloperSection > Interviews > What is use of @Synthesize?

Posted on    April-21-2015 2:33 AM

 iPhone iPhone  Ios  Ipad 
 1 Answer(s)
  568  View(s)
Rate this:

Sunil Singh
Sunil Singh

Total Post:167

Posted on    April-21-2015 2:33 AM

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, compiler will generate the getter and setter automatically for you, @dynamic: you have to write them yourself.

Don't want to miss updates? Please click the below button!

Follow MindStick