SHARE
TWEET

Untitled

a guest Dec 22nd, 2012 11 Never
  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:^{}];
RAW Paste Data
Top