title: ios - download and view image from web url xcode
body: <p>i need download image from url and load it into UIIamge view </p>
  
  <p>first i get image from URL , but data return with nil i dont know why ? </p>
  
  <pre><code> -(UIImage *) getImageFromURL:(NSString *)fileURL {
          UIImage * result;
      // data here return with nil 
          NSData * data = [NSData dataWithContentsOfURL:[NSURL URLWithString:fileURL]];
          result = [UIImage imageWithData:data];
  
          return result;
      }
  </code></pre>