-->

How to open Photo app from UIViewController?

2020-08-15 00:15发布

问题:

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.

回答1:

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


回答2:

It is not possible. The Photos app does not register any URL schemes. This means you cannot open it by calling:

[[UIApplication sharedApplication] openURL:url];

and passing a valid URL (like you would to open Safari or Phone apps). Short answer is that you cannot open the Photos app programmatically.

Documentation: About Apple URL Schemes



回答3:

you can not open default photo app ,if you want to select photo from photo album,check this: Load image from photo library



回答4:

It is not possible to open the Picture app from your application.

A list of all URL schemes can be found here, including third party applications.

-> iOS URL Schemes