Can someone help me figure out what I might be missing?
I’m getting this error, and seems like something ULTRA simple, but I have no idea where it comes from! There are a couple of posts about it. But none seem to relate. All I’m doing is,
Setting a property,
@property (weak, nonatomic) NSString * rate;
and in my viewDidLoad,
self.rate = @"bananas";
NSLog(@"self.rate %@",self.rate);
I keep getting in the console -> self.rate (null)
Any help is most appreciated
Thank you!!
Nuno
p.s. I also tried to set a string pointer and also tried to alloc]init] (but I don’t really see any for reason for that to be the problem, and it wasn’t)… no success so far.
Also, property is @synthesized
Like @Guven said, I was really setting a setter at the same time as I was using a @synthesize when I shouldn’t.
I didn’t realize I had an “old” method setRate laying around in the code.
Thank you everyone!