I’m using NSUserDefaults and I have the code mondayalarm = [prefs stringForKey:@"mondayalarm"]; and mondayalarm (first reference, not the key) is an NSDate. It’s giving me the warning:
incompatible Objective-C types assigning ‘struct NSString *’, expected ‘struct NSDate *’
How can i make it accept this without the warning?
To prevent the warning:
To fix your problem: