http://blog.s135.com

转自张宴的博客  http://blog.s135.com

ASIHTTPRequest 类库在iOS 7.0中,会有一些报错警告,需要稍作修改:

  1、

if ([inputStream streamStatus] == NSStreamEventErrorOccurred) {


  修改成:

if ([inputStream streamStatus] == (NSStreamStatus)NSStreamEventErrorOccurred) {



  2、

return [[NSDate date] addTimeInterval:maxAge];


  修改成:

return [[NSDate date] dateByAddingTimeInterval:maxAge];

你可能感兴趣的:(Blog)