iPhone:Camera Overlay 可以放入 Tabbar Viewcontroller 中吗?

发布于 2024-12-05 07:28:26 字数 469 浏览 0 评论 0原文

我有一个选项卡栏应用程序,单击选项卡栏项目,我应该显示相机覆盖视图,但它不应该隐藏选项卡栏,相机覆盖应该正好适合选项卡栏视图控制器,就像选项卡栏视图后面一样。我创建了一个自定义相机覆盖层,并将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

So尛奶瓶 2024-12-12 07:28:26

我假设您正在使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文