What are properties in Objective-C?
When you declare a property for an instance variable Objective-C compiler generate getters and setters for that instance variable.
Declaring property in .h file methods declaration section:
@property(attributes) propertyType propertyName;Declaring synthesize in .m file methods implementation section:
@synthesize propertyName;
No comments:
Post a Comment