0

我在 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;
}
4

1 回答 1

0

你的应用程序 iPhone 5 优化了吗?这可能是一个原因。如果您的应用未针对 iPhone 5 进行优化,

这将有助于做到这一点

无论如何,你将不得不这样做。现在应用程序在没有 iPhone 5 支持的情况下是不允许提交的。

于 2013-05-30T09:19:25.347 回答