-6

I just need a code when I click on the button it closes my app and launches the Camera or Voice Memo app.

Code for both would be helpful.

Code I was using:

NSString *stringURL = @"videos:";
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
MichaelD
  • 31
  • 1
  • 6

1 Answers1

5

It is not possible to launch Camera.app, in part because of the fact that it has no URL scheme, and in whole because Apple expects you to implement your own camera, and makes it very easy to do so. Take a look at the UIImagePickerController documentation for more info.

It's also not possible to launch Voice Memos.app because it has no known URL scheme.

CodaFi
  • 43,043
  • 8
  • 107
  • 153
  • Thanks. I was looking for a the URL scheme for these items but couldn't find it. I appreciate the help. – MichaelD Jul 10 '12 at 23:25
  • Absolutely. Next time, know that the one thing that really cheeses off an SO-ite is asking outright for code. – CodaFi Jul 10 '12 at 23:32
  • 1
    @MichaelD If Coda's answer helped you, please accept it. There's a check mark to the left of his answer--click it to accept the answer. Thanks for helping keep the site clean! – WendiKidd Jul 11 '12 at 01:18