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