Having just discovered NSDate I am trying to return a time interval (a typedef of long as a positive or negative number of seconds if I understand it correctly)
using the follow line of code
It seems to work but when I build I see a Warning message that says:
NSDate may not respond to +dateWithString
What am I doing wrong?
Basically I want a check a given date to see if it is in the past or future.
using the follow line of code
Code:
NSTimeInterval dateDiff = [[NSDate dateWithString:@"2011-11-17 00:00:00 +0000"] timeIntervalSinceNow];
It seems to work but when I build I see a Warning message that says:
NSDate may not respond to +dateWithString
What am I doing wrong?
Basically I want a check a given date to see if it is in the past or future.
Last edited: