我正在添加UIImagePickerController
作为UINavigationController
内UIPopoverController
的子视图。
下面是代码:
UIViewController *container = [[UIViewController alloc] init];
self.navigationBarHidden = YES;
camera = [[UIImagePickerController alloc] init];
camera.sourceType = UIImagePickerControllerSourceTypeCamera;
[container addChildViewController:camera];
[container.view setFrame:camera.view.frame];
[container.view addSubview:camera.view];
[self pushViewController:container animated:YES];
一切看起来都不错,但快门动画。它似乎偏离中心,虹膜的中间实际上是在视线的顶部。
如何修复快门动画?