我的ImageView我想从URL加载图像,但它没有加载我用下面的代码,而不是的UIImageView不从URL iphone加载图像
pdfView.hidden=NO;
webView.hidden=NO;
pictureImageView.hidden=NO;
pdfView.backgroundColor=[UIColor clearColor];
doneButton = [[UIBarButtonItem alloc]initWithTitle:@" Done " style:UIBarButtonItemStyleBordered target:self action:@selector(doneButtonClick)];
self.navigationItem.leftBarButtonItem =doneButton;
webView.backgroundColor=[UIColor clearColor];
NSLog(@"File Name is %@",fileName);
NSLog(@"Enterning in the ImageSection");
NSString *ImageURL = fileName;
NSData *imageData = [NSData dataWithContentsOfURL:[NSURL URLWithString:ImageURL]];
pictureImageView.image = [UIImage imageWithData:imageData];
,如果我想从当地给像下面然后还要它不显示图像的ImageView任何想法如何从URL加载图像感谢该图像的
pictureImageView.image=[UIImage imageNamed:@"starblue.png"];
imageUrl contains images? –
你给frameImageView? – AkaMu
bad code formatting .. – rptwsthi