"NSDate" may not respond to + dateWithString

NSDate *future = [NSDate dateWithString:@"2010-12-25 00:00:00 -0600"];

I get a warning message: NSDatemay not respond to+dateWithString

Any ideas?

+5
source share
2 answers

Perhaps you mean the method in NSDateFormatter ?

+12
source

NSDate dateFromString is MacOS only, not iOS.

+22
source

All Articles