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];