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