@property objective-c syntax
- by okami
I'm looking for the syntax of the getter/setter. Which is the setter and which is the getter??
Is the readwrite attribute the getter?
Is the assign the setter?
@interface SomeClass : NSObject
{
NSString *str;
NSDate *date;
}
@property (readwrite, assign) NSString *str;
@property (readwrite, assign) NSDate *date;