Ios – ‘NSDate’ may not respond to +dateWithString

iosios4iphone-sdk-3.0nsdateobjective c

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

I'm getting a warning message: NSDate may not respond to +dateWithString

Any ideas?

Best Answer

NSDate dateFromString is MacOS only, not iOS.