Objective C assigning a value to a variable
I have this line in my header file
@property (strong, nonatomic) NSMutableDictionary *weatherData;
And I'm truing to do the following on my implementation
-(void)doSomething {
NSMutableDictionary *data = [[NSMutableDictionary alloc] init];
//after adding items to data
self.weatherData = data;
}
then I have a function to get
-(NSMutableDictionary *)getWeaterData {
NSLog([self.weatherData description]);
return self.weatherData;
}
Why does noting gets printed, above data has data in it.
No comments:
Post a Comment