Instagram UIImagePickerController
如果有人在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为它只是将 UINavigationController 作为
UIImagePickerController
之上的模式视图控制器呈现。当您按“过滤器”按钮返回照片时,它不会以UINavigationController
的方式进行导航。我认为它覆盖了后退按钮(“过滤器”按钮)并关闭了整个UINavigationController
。我发现有趣的是,当
UINavigationController
显示时,有一个动画将新视图从右向左滑动。我的猜测是,UINavigationController
的rootViewController
是一个空的透明视图,下一个视图(包含标题和共享选项等)在短暂后被推送到导航堆栈上延迟。我没有想到,但观察很有趣! :)
I think it is just presenting
UINavigationController
as a modal view controller on top of theUIImagePickerController
. When you press 'Filter' button to come back to the photo, it does not navigate in a way thatUINavigationController
does. I think it is overriding the back button ('Filter' button) and dismissing the entireUINavigationController
.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 therootViewController
of theUINavigationController
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! :)