Je veux voir une image en plein écran sur l'iPhone. combien de pixels dois-je définir? largeur et hauteur sont différentes pour l'iphone 3 et 4?UIImageView: image en plein écran
Mon code source:
NSString *filePath = [[NSBundle mainBundle] pathForResource:theProduct.image ofType:@"png"];
UIImageView *img = [[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:filePath]];
img.frame = CGRectMake(0.0, 0.0, ?, ?);
[self.view addSubview:img];
Que dois-je mettre à la place des points d'interrogation?
Un grand merci, Stefano
Cela m'a semblé être une bonne idée, mais je me suis trompé d'orientation quand je l'ai essayé. http://stackoverflow.com/questions/2664980/uiscreen-applicationframe-returning-incorrect-rectangle-on-landscape-application pourrait intéresser les futurs lecteurs. – PeterT