title: "No visible @interface declares the selector" error
body: <p>I inserted an image view in my view controller but dont actually know how to display image on it. </p>
  
  <p>I tried this: </p>
  
  <pre><code>- (void)viewDidLoad
  {
  [super viewDidLoad];
  
  
  id path = @"http://thestylishdog.com/wp-content/uploads/2009/07/cute-dog2.jpg";
  NSURL *url = [NSURL URLWithString:path];
  NSData *data = [NSData dataWithContentsOfURL:url];
  UIImageView *firstImage = [[UIImage alloc] initWithData:data cache:NO];
  }
  </code></pre>
  
  <p>But then it says that 'No visible @interface for UIimage declares the selector initwithData:cache' </p>
  
  <p>I tried adding this line to the .h file but does not work either: </p>
  
  <pre><code>@property (nonatomic, retain) UIImageView *firstImage;
  </code></pre>
  
  <p>I know that the last step would be to assign that .h create class to the UIimage in the viewcontroller. </p>