如何从UIViewController打开Photo应用程序? [英] How to open Photo app from UIViewController?

查看:153
本文介绍了如何从UIViewController打开Photo应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些可能的结果如何从按钮操作中的uiviewcontroller打开照片应用程序。它就像一个Facebook身份验证屏幕打开,这意味着当用户点击uibutton时,它将最小化本机应用程序并打开照片应用程序。 ios 6和ios 7版本都可以使用。

I have some possible results for How to open Photo App from uiviewcontroller in button Action. It's like a Facebook authentication screen open, that means when user click uibutton, it will minimize the native app and open the photo app. Is this possible for both ios 6 and ios 7 versions.

如果您知道,请提供一些可能的结果吗?

Kindly give some possible results if you are know?

如果有任何机构提供解决方案我非常感谢你。

If any body give the solutions I really appreciate to you.

推荐答案

UIApplication.shared.open(URL(string:"photos-redirect://")!)

这篇关于如何从UIViewController打开Photo应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆