WHAT IS USE OF @SYNTHESIZE?

Sunil Singh

Total Post:169

Points:845
Posted by  Sunil Singh
iPhone  Ios  Ipad 
 652  View(s)
Ratings:
Rate this:
  1. Sunil Singh

    Post:169

    Points:845
    What is use of @Synthesize?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!