2013-05-30 44 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支持,現在應用不允許提交。