iPhone:Camera Overlay 可以放入 Tabbar Viewcontroller 中吗?
我有一个选项卡栏应用程序,单击选项卡栏项目,我应该显示相机覆盖视图,但它不应该隐藏选项卡栏,相机覆盖应该正好适合选项卡栏视图控制器,就像选项卡栏视图后面一样。我创建了一个自定义相机覆盖层,并将 UIImagePickerController 调用到我的客户相机覆盖层。但它以全屏模式打开并隐藏我的标签栏等。
pickerController.cameraOverlayView = camCumtomOverlay;
我什至尝试将自定义相机覆盖层的大小调整为小,如下所示,但它以全屏模式打开相机视图并隐藏我的整个标签栏。
myOwnOverlay = [[[UIView alloc]initWithFrame:CGRectMake(0, 0, 320, 300)] autorelease];
但我想将自定义相机叠加层放入标签栏中。 有人可以告诉我如何实现它吗?
谢谢!
I have a Tabbar application, where clicking on a tabbar item, i should show a Camera Overlay view , BUT it should not HIDE the tabbar, Camera overlay should just fit into the tabbar viewcontrollers, just like behind the tabbar view. I created a custom camera overlay and called UIImagePickerController to my customer camera overlay. But it opens up with full screen mode and hides my tabbar etc.
pickerController.cameraOverlayView = camCumtomOverlay;
I even tried resized the custom camera overlay to small like below, but it open up the camera view with full screen and hides my entire tabbars.
myOwnOverlay = [[[UIView alloc]initWithFrame:CGRectMake(0, 0, 320, 300)] autorelease];
But i want to to fit that custom camera overlay into tabbar.
Could someone please advise me how to achieve it?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您正在使用
presentModalViewController:
来呈现选择器。模态视图控制器将遍历后面的所有内容,因此选项卡栏也会隐藏。您可以在叠加层中添加一个选项卡栏,其作用与主选项卡栏相同。I presume you're using
presentModalViewController:
to present the picker. Modal view controllers will go over everything that's behind, so the tabbar will hide as well. You can add a tabbar in the overlay that acts the same as the main tabbar.