今天下载图片一直不出来,用NSLog(@"[NSURL URLWithString:chartMessage.imageUrl] -->>> %@",[NSURL URLWithString:[chartMessage.imageUrl stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]]);转译了一下发现最后多了个\n
最后用[chartMessage.imageUrl stringByReplacingOccurrencesOfString:@"\n" withString:@“"]方法解决。
http://www.07net01.com/2015/08/917476.html