如果URL中带空格,在浏览器中可以显示,但是如果访问比如UIImage 获取图片的时候就会出现BAD URL.解决:NSString* urlText = @"70.84.58.40/projects/igolf/TipThumb/GOLF 58B.jpg"; NSString* urlTextEscaped = [urlText stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];