0

I need to add an Open in button to an iOS 8 Share Extension just like the app Twitshot have done. You will get the menu if you share a link from >Safari >Share >Twitshot. How can that be done? enter image description here

Tom
  • 5,588
  • 20
  • 77
  • 129

1 Answers1

1

This isn't a true share extension.

They are simply using a UIAlertController with actions. Their actions are title Open In TwitShot App. And when a user taps on it they are just using a custom URL that opens the app : for example to open YouTube it would be :

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"YouTube://"]];

You just need the custom URL scheme for the apps you want to open

soulshined
  • 9,612
  • 5
  • 44
  • 79