daily pastebin goal
72%
SHARE
TWEET

Untitled

a guest Jan 19th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - (IBAction)facebookPost:(id)sender
  2. {
  3. if([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook])
  4. {
  5.     mySLComposerSheet = [[SLComposeViewController alloc] init];
  6.     mySLComposerSheet = [SLComposeViewController  composeViewControllerForServiceType:SLServiceTypeFacebook];
  7.  
  8.     [mySLComposerSheet setInitialText:[NSString stringWithFormat:@"I'm listening to Boilerroom Recordings via the Boilerroom iPhone Application",mySLComposerSheet.serviceType]];
  9.  
  10.     [mySLComposerSheet addImage:[UIImage imageNamed:@"BOILERROOM_LOGO_250x250.png"]];
  11.     [self presentViewController:mySLComposerSheet animated:YES completion:nil];
  12. }
  13. [mySLComposerSheet setCompletionHandler:^(SLComposeViewControllerResult result) {
  14.     NSLog(@"dfsdf");
  15.     switch (result) {
  16.         case SLComposeViewControllerResultCancelled:
  17.             break;
  18.         case SLComposeViewControllerResultDone:
  19.             break;
  20.         default:
  21.             break;
  22.     }
  23. }];
  24.  
  25. }
  26.    
  27. [mySLComposerSheet setInitialText:[NSString stringWithFormat:@"I'm listening to Boilerroom Recordings via the Boilerroom iPhone Application and want to share it using %@ !",mySLComposerSheet.serviceType]];
  28.    
  29. [mySLComposerSheet setInitialText:@"I'm listening to Boilerroom Recordings via the Boilerroom iPhone Application];
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top