开发者

'NSDate' may not respond to +dateWithString

开发者 https://www.devze.com 2023-01-30 19:15 出处:网络
NSDate *future = [NSDate dateWithString:@\"2010-12-25 00:00:00 -0600\"]; I\'m getting a warning message: NSDate may not respond t开发者_如何学Pythono +dateWithString
NSDate *future = [NSDate dateWithString:@"2010-12-25 00:00:00 -0600"];

I'm getting a warning message: NSDate may not respond t开发者_如何学Pythono +dateWithString

Any ideas?


NSDate dateFromString is MacOS only, not iOS.


maybe you mean the method in NSDateFormatter?

0

精彩评论

暂无评论...
验证码 换一张
取 消