I am converting url data into UIImage
. This is my code.
NSURL *url = [NSURL URLWithString:strImgURL];
NSData *data = [NSData dataWithContentsOfURL:url options:NSDataReadingUncached error:&error];
NSLog(@"Image Error-------%@",[error localizedDescription]);
imgProf = [[UIImage alloc] initWithData:data];
but My data always returns <>
(lldb) po data
<>
But when I type this url in browser I can get the image. What is the reason for this? Please help me. Thanks