【发布时间】:2011-01-16 18:42:51
【问题描述】:
我想在 iPhone 上查看全屏图像。多少 像素我要设置吗? iphone 3 的宽度和高度不同, 4?
我的源代码:
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];
我应该用什么来代替问号?
非常感谢, 斯特凡诺
【问题讨论】: