Hi,
I am using the following code for loading image. But its not working. Can anybody note the mistake with the code.
Code:
- (void)viewDidLoad {
[super viewDidLoad];
imageData = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:@"http://66.39.113.170/images/basic_iphone_background.jpg"]];
image = [[UIImage alloc] initWithData:imageData];
imageView = [[UIImageView alloc] initWithImage:image];
[imageView setImage:image];
[imageView release];
}
Regards,
Sreelash