did anyone encounter this problem?
here’s the code in ViewController.m. I have a UIImageView in the XIB file attached to IBOutlet named “imageView”
-(void)viewDidLoad
{
[super viewDidLoad];
NSURL *url = [NSURL URLWithString:@"http://www.google.co.il/images/nav_logo114.png"];
NSData *data = [NSData dataWithContentsOfURL:url];
self.imageView = [self.imageView initWithImage:[UIImage imageWithData:data]];
}
instead of
do this:
and don’t forget to
@synthesize imageView