-
Book Overview & Buying
-
Table Of Contents
Objective C Memory Management Essentials
By :
If you have been doing some Objective-C programming, you would have come across the following syntax:
@property (nonatomic, readonly) UIView *rearView; or @property (nonatomic, retain) UIActivityIndicatorView *loadingView;
Now, I would bet that you would generally have a foggy idea of what terms such as nonatomic or retain mean when you are assigning these properties such as nonatomic and so on to your objects. These keywords, such as nonatomic or readonly, actually define the properties of your objects, which are used in the getter and setter methods automatically created for you in Xcode. These terms are coding keywords related to memory management and access control and were not created just to baffle you or to give you additional typing to do (at least not as much typing as typing getter and setter methods themselves). Anyway, let's go through what these terms mean so that you will get a better understanding of these keywords in relation to getter...
Change the font size
Change margin width
Change background colour