0
如何獲得只針對其圖像從url.Please幫助下載獲得此如何獲得圖片僅供其圖像從URL下載數據
if(image)
{
CGFloat oX = (([[UIScreen mainScreen]bounds].size.width) -200)/3;
UIImageView *iView = [[UIImageView alloc]initWithFrame:CGRectMake(oX, yValue, 200, height+80)];
[Utility getAndSaveImagesForUrl:str];
[iView setImage:image];
[self.scrollInfo addSubview:iView];
[iView release];
yValue = yValue + height+90;
}
else
{
[Utility getAndSaveImagesForUrl:str];
UILabel * locationLabel = [[UILabel alloc]initWithFrame:CGRectMake(3, yValue, width, height+7)];
[locationLabel setFont:[UIFont boldSystemFontOfSize:15.0f]];
locationLabel.font=[UIFont systemFontOfSize:20.0f];//Kashif
[locationLabel setBackgroundColor:[UIColor clearColor]];
locationLabel.text = info.location;
locationStr = info.location;
[locationLabel setTextColor:[UIColor colorWithRed:66.0/255.0f green:182.0/255.0f blue:241.0/255.0f alpha:1.0]];
[self.scrollInfo addSubview:locationLabel];
[locationLabel release];
yValue = yValue + height+7;
}