title: Why isn't the *textToShare appearing after clicking my @"Share" button?
body: <p>I want to it so when a player presses the @"share" button they can text and email a message and url to a friend. The code I wrote says a message and url but when I press Share and then either messages or email it's just an empty text box.</p>
  
  <p>Also the last line seems to have problems.</p>
  
  <p>It tells me there's NO visible @interface for 'MyScene' declares the selector 'presentViewController:activityVC animated:YES completion'</p>
  
  <p>This is my IBAction</p>
  
  <pre><code>- (IBAction)shareAction:(id)sender {
  //  
    NSLog(@"share");
   NSString *textToShare = @"YOOO CHECK IT OUT";
    UIImage *imageToShare = [UIImage imageNamed:@"beck.png"];
  
    NSURL *urlToShare = [NSURL URLWithString:@"http://www.google.com"];
  
   NSArray *activityItems = @[textToShare, imageToShare, urlToShare];
   UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:nil];
   activityVC.excludedActivityTypes = @[UIActivityTypeMail, UIActivityTypeMessage,                UIActivityTypeAssignToContact, UIActivityTypePrint, UIActivityTypePostToTwitter,    UIActivityTypePostToWeibo];
  
   UIActivityViewControllerCompletionHandler myBlock = ^(NSString *activityType,BOOL completed) {
  NSLog(@"%@", activityType);
  if(completed) {
    NSLog(@"completed");
  } else
  {
    NSLog(@"cancled");
  }
  [activityVC dismissViewControllerAnimated:YES completion:Nil];
   };
   activityVC.completionHandler = myBlock;
   [self presentViewController:activityVC animated:YES completion:nil];
  </code></pre>
  
  <p>}</p>