Instagram UIImagePickerController

发布于 2024-12-28 22:36:27 字数 329 浏览 4 评论 0原文

如果有人在 iPhone 上安装了 Instagram,请尝试点击标签栏中凸起的中心按钮,即用于发布新图像的按钮。

它似乎呈现了一个没有动画的模态视图控制器,对吧?

视图控制器是一个带有相机覆盖层的 UIImagePickerController?我问这个问题是因为如果您尝试拍照并单击“确定”,您将可以在 UINavigationController 中看到下一个控制器。通过这种方式,您可以返回并重新拍摄照片或继续发布。

这怎么可能?如何使用 UIImagePickerController 呈现导航控制器并在选择器之后推送其他视图控制器?

if someone have Instagram on his iPhone try to tap on the raised center button in the tabbar, the button for posting new images.

It seems to present a modal view controller without animation, right?

The view controller is an UIImagePickerController with a camera overlay? I ask this because if you try to take a photo and click OKAY, you'll can see the next controller within a UINavigationController. In this way you can go back and retake the photo or go forward and posting it.

How this is possible? How can I present a navigation controller with an UIImagePickerController and push others view controller after the picker?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

断念 2025-01-04 22:36:27

我认为它只是将 UINavigationController 作为 UIImagePickerController 之上的模式视图控制器呈现。当您按“过滤器”按钮返回照片时,它不会以 UINavigationController 的方式进行导航。我认为它覆盖了后退按钮(“过滤器”按钮)并关闭了整个 UINavigationController

我发现有趣的是,当 UINavigationController 显示时,有一个动画将新视图从右向左滑动。我的猜测是,UINavigationControllerrootViewController 是一个空的透明视图,下一个视图(包含标题和共享选项等)在短暂后被推送到导航堆栈上延迟。

我没有想到,但观察很有趣! :)

I think it is just presenting UINavigationController as a modal view controller on top of the UIImagePickerController. When you press 'Filter' button to come back to the photo, it does not navigate in a way that UINavigationController does. I think it is overriding the back button ('Filter' button) and dismissing the entire UINavigationController.

What I found interesting was that when the UINavigationController shows up, there is an animation that slides the new view from right to left. My guess is that the rootViewController of the UINavigationController is an empty transparent view, and the next view (that contains caption and sharing option etc) is pushed on the navigation stack after short delay.

I didn't think about it, but it is interesting to observe! :)

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