iOS: NSString loses URL, (null) is shown
问题 This is my Code so far: NSString *listedImageURL = listedProduct.image; NSLog(@"URL: %@", listedImageURL); This Code works fine and NSLog shows me the correct URL. But when I try the following Code, NSLog shows up (null): NSString *listedImageURL = listedProduct.image; NSURL *imageURL = [NSURL URLWithString:listedImageURL]; NSData *imageData = [NSData dataWithContentsOfURL:imageURL]; UIImage *image = [UIImage imageWithData:imageData]; What am I doing wrong?? 回答1: I believe that relower is on