iPhone - 从 UIWindow 启动 UIImagePickerController
如何从 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
的主 UIWindow (未定义视图)启动 UIImagePickerController
主窗口没有内置导航控制器进入 IB 的项目(并且无需向 IB 添加导航控制器)?
How may I launch a UIImagePickerController
from the main UIWindow (no view defined) from - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
, on a project for which the main window does not have a built-in Navigation controller into IB (and without having to add one into IB)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您不需要
UINavigationController
,那么只需将常规UIViewController
作为主窗口的根视图即可。并从中呈现 UIImagePickerController 。例子:
If you don't need
UINavigationController
then just place regularUIViewController
as a root view for main windows. And presentUIImagePickerController
from it.Example:
这应该可以实现你想要的。
That should accomplish what you want.