Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Dec 22nd, 2012  |  syntax: None  |  size: 0.39 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. NSString* someText = @"Sent from my app!";
  2. UIImage* image = imageview.image;
  3. NSArray* dataToShare = @[someText, image];  //Array of sharable stuff.
  4.  
  5. UIActivityViewController* activityViewController =
  6.         [[UIActivityViewController alloc] initWithActivityItems:dataToShare
  7.         applicationActivities:nil];
  8. [self presentViewController:activityViewController animated:YES completion:^{}];