iPhone上でフルスクリーンイメージを見たいです。どのくらい多く ピクセル私はそれを設定する必要がありますか?幅と高さはiPhone 3と 4で異なっていますか?UIImageView:フルスクリーンイメージ
私のソースコードは:
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];
私は疑問符の代わりに何を置くべきですか?
多くのおかげで、 ステファノ
これは素晴らしいアイデアのようでしたが、試したときに間違った向きになってしまいました。 http://stackoverflow.com/questions/2664980/uiscreen-applicationframe-returning-incorrect-rectangle-on-landscape-applicationは将来の読者にとって興味深いかもしれません。 – PeterT