It is necessary to instantiate the dict
property, this can be done in the init
method.
Sample:
- (instancetype)init {
self = [super init];
if (self) {
_dict = [NSMutableDictionary new];
}
return self;
}
Call with:
MyClass *myClass = [MyClass new];
[myClass method];