30

Can I show this "Share Screen" in my own app using iOS 6? Somebody that knows how?

iOS Share Screen

s1m0n
  • 7,825
  • 1
  • 32
  • 45
Gustaf Rosenblad
  • 1,902
  • 2
  • 25
  • 45

1 Answers1

62

I'm afraid you are all wrong. I'm sorry for being this negative, but your wrong answers forced me to waste time in going for futile solutions.... instead you can use this code to achive this screen:

NSString* someText = self.textView.text;
NSArray* dataToShare = @[someText];  // ...or whatever pieces of data you want to share.

UIActivityViewController* activityViewController = 
[[UIActivityViewController alloc] initWithActivityItems:dataToShare 
                                  applicationActivities:nil];
[self presentViewController:activityViewController animated:YES completion:^{}];

The code is from Social.framework.

See this answer: Using Apple icons with iOS 6

Community
  • 1
  • 1
Ertai
  • 1,735
  • 2
  • 23
  • 29
  • 8
    Everything's correct except that it's not from Social.framework, but UIKit.framework (hence the UI prefix) so you don't have to link to Social.framework. And yeah, I can't believe all these nonsense answers. – Filip Radelic Sep 25 '12 at 13:36
  • @Ertai is Sharekit supports ios6 without any complications? – P R J Oct 26 '12 at 06:53