Search code examples
iosobjective-cios4iphone-sdk-3.0nsdate

'NSDate' may not respond to +dateWithString


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?


Solution

  • maybe you mean the method in NSDateFormatter?