how to load image from server (url) to uitableview in Xcode
        Posted  
        
            by 
                Divya
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Divya
        
        
        
        Published on 2014-06-05T08:56:15Z
        Indexed on 
            2014/06/05
            9:25 UTC
        
        
        Read the original article
        Hit count: 163
        
objective-c
I need to load image from server(url) to UITableView. So i tired below code, but no use.
UIImageView *img=[[UIImageView alloc]init];
img.frame=fr;
img.image=[UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:countimg]]];
[cell.contentView addSubview:img];
Here countimg is NSMutableArray. countimg contains url of all images to load. But its not working, because its not a string variable. I don't know how to change NSMutuableArray to String.
Anyone help me.
© Stack Overflow or respective owner