NSData & NSURL - url with space having problem
问题 I have following code in my application. NSData *data=[NSData dataWithContentsOfURL:[NSURL URLWithString:pathOfThumbNail]]; pathOfThumbNail has following path http://70.84.58.40/projects/igolf/TipThumb/GOLF 58B.jpg When I open above path in safari browser - path is changed automatically & image is successfully displayed. http://70.84.58.40/projects/igolf/TipThumb/GOLF%2058B.jpg But in iPhone, due to space in path, image isn't loaded in nsdata. 回答1: Use: