TestsTested | ✓ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
Making it possible to add a property in a Objective-C category
see http://stackoverflow.com/questions/8733104/objective-c-property-instance-variable-in-category
Nothing special. Just add a property normally in a @interface and use @dynamic in an @implementation.
YourClass.h
@interface YourClass (YourCategory)
@property NSString *yourProperty;
@end
YourClass.m
@implementation YourClass (YourCategory)
@dynamic yourProperty;
@end
DProperty is released under the MIT-license.