DProperty 0.0.2

DProperty 0.0.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total61,463
Week980
Month3,050

Installs

Apps115
Apps WeekApps This Week 2
Test Targets11
powered by Segment

GitHub

Stars63
Watchers5
Forks8
Issues4
Contributors3
Pull Requests1

Code

Files4
LOCLines of Code 492


DProperty 0.0.2

  • By
  • kissrobber

Making it possible to add a property in a Objective-C category

How is it done?

see http://stackoverflow.com/questions/8733104/objective-c-property-instance-variable-in-category

Awesome! So, how do I use it?

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

License

DProperty is released under the MIT-license.