是否可以将非图像页面加载到UIImageView

时间:2014-04-08 16:59:09

标签: javascript html ios svg uiimageview

我将图像存储在远程服务器中,然后使用JSON从服务器获取这些图像,然后加载到UIImageView。现在,我有使用SVG格式的带有颜色选项的html页面。我需要将此页面加载到UIImageView。我的网址就像这个server.net/projects/coloroption(这个页面包含html代码)。但在我的代码mmageview只接受图像格式。如何将颜色更改选项加载到mmageview?

 mmageView=[[UIImageView alloc]initWithFrame:CGRectMake(50,50,150,150)];

     [mmageView setUserInteractionEnabled:YES];

     //  [mmageView setImage:[UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:[productimg_array objectAtIndex:[sender tag]-1]]]]];

     [mmageView setImageWithURL:[NSURL URLWithString:[productimg_array objectAtIndex:[sender tag]-1]] placeholderImage:nil options:SDWebImageProgressiveDownload completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType) {


     }];

    [mmageView setTag:[sender tag]-1];

        [self.view addSubview:mmageView];

0 个答案:

没有答案