objective c – How can I open native camera from my app on iOS?


I need open the native camera app when a function was called. I just need redirect to native camera app. I don’t want to get any image.

I am trying with this code:

        NSURL *url = [NSURL URLWithString:@"some-camera-deep-link://"];
        
        if ([[UIApplication sharedApplication] canOpenURL:url]) {
            [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
        } else {
            NSLog(@"some error");
        }

However, I don’t know the exact URL I need to set and how configure this in my Info.plist.

Is possible do this kind of navigation?
Can you show some example?

I don’t want to use UIImagePickerController.

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img