我在iPhone上制作了简单的相机应用程序。在iPhone 4中,它适用于正确的相机屏幕尺寸,但在iPhone5中,它会出现在相机屏幕和底部条之间的黑条。
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]))
{
AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:
[[NSBundle mainBundle] pathForResource:@"tick"
ofType:@"aiff"]],
&_tickSound);
self.imgPickController = [[[UIImagePickerController alloc] init] autorelease];
self.imgPickController.sourceType = UIImagePickerControllerSourceTypeCamera;
self.imgPickController.delegate = self;
self.imgPickController.showsCameraControls = NO;
posCaptDevice = UIImagePickerControllerCameraDeviceRear;
nCountSec = 0;
self.view.frame = [UIScreen mainScreen].bounds;
[self initCamera];
}
return self;
}
答案 0 :(得分:0)
你的应用iPhone 5是否经过优化?。这可能是一个原因。如果您的应用未经iPhone 5优化,
无论如何你必须这样做。现在,如果没有iPhone 5的支持,不允许提交应用。