How to add property in runtime and sampleItem is my item class and I am presenting the .h and .m file. It has two properties but I want add one more property in run time.
sampleItem.h
@interface sampleItem : NSObject
@property (strong,nonatomic) NSString *name;
@property (nonatomic) NSString *city;
- (id) initToDefaults;
@end
sampleItem.m
- (id) initToDefaults
{
self. name = @"";
self.city = @" ";
}
Am using above item class with two properties in my project. This is a class using in my project as a entity. Now my question is want to add one more property in runtime.
Can any body please solve my problem.