I am having a problem displaying an image on iphone. I used the code below, but it only works for .png files.
UIImageView* imageView=[[UIImageView alloc] initWithFrame:CGRectMake(6,10, 80, 80)]; imageView.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:customerListObject.customerImage]]]; [myView addSubview:imageView]; [imageView release];
I could not display other types of image files, please offer me a solution.
Thanks Madan Mohan
source share