I am working on an app where I show in UIAlertView some icons appear in order to explan theirs use. I did that using:
UIAlertView *helpAlert = [[UIAlertView alloc] initWithTitle:@"The button:\n\n is used to do... \n\n " message:@"" delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil];
UIImageView *imageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(20, 55, 40, 40)];
NSString *path1 = [[NSString alloc] initWithString:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"bottle_w_40.png"]];
UIImage *bkgImg1 = [[UIImage alloc] initWithContentsOfFile:path1];
[imageView1 setImage:bkgImg1];
[bkgImg1 release];
[path1 release];
[helpAlert addSubview:imageView1];
[imageView1 release];
[helpAlert show];
[helpAlert release];
It works well, in simulator and in my iphone 3gs(no retina display). My dude is about the retina behavior. Images position will be different? Do I need to use some scaleFactor for the CGRectMake or position in the UIAlertview is absolute?