2013-05-30 40 views
0

我在iPhone中制作了简单的相机应用程序。在iPhone 4中,它适用于正确的相机屏幕尺寸,但在iPhone5中,它会出现相机屏幕和底部条之间的黑条。如何在Retina 4中设置相机的屏幕尺寸?

- (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

是你的应用程序iPhone 5优化?它可能是一个原因。如果您的应用并非iPhone 5进行优化,

This will help to do it

反正你将不得不这样做。如果没有iPhone 5支持,现在应用不允许提交。