What is the use of the @property (nonatomic, keep) operator in an application?

im a budding iphone developer and i want to know what is the use of the @property (nonatomic, keep) operator with an example, can any body give me any answer?

+6
iphone
source share
2 answers

@property tells Objective-C to generate getters and setters for this member variable when it is @synthesize 'd in the implementation class. The Save parameter says that the generated setter should send a message to save the set value. non- atomic means that the atomicity of obtaining and setting a variable is not guaranteed.

+12
source share

In the "Declared Properties" section of Apple, there are many examples from the Objective-C Programming Language . Definitely worth a read.

+5
source share

All Articles