title: Twitter image integration
body: <p>My app tweets in the following way:</p>
  
  <pre><code>-(IBAction)TweetMethod:(id)sender{
  
  tweetView = [[TWTweetComposeViewController alloc] init];
  TWTweetComposeViewControllerCompletionHandler
  completionHandler = ^(TWTweetComposeViewControllerResult result)
  {
      switch (result)
      {
          case TWTweetComposeViewControllerResultCancelled:
              NSLog(@"Twitter Result: canceled");
              break;
          case TWTweetComposeViewControllerResultDone:
              NSLog(@"Twitter Result: sent");
              break;
          default:
              NSLog(@"Twitter Result: default"); break;
      }
      [self dismissModalViewControllerAnimated:YES]; };
  [tweetView setCompletionHandler:completionHandler]; 
  
  NSURL *url = [[NSURL alloc] initWithString:@"Twitter.com"];
  
  
  UIButton *button = (UIButton*) sender;
  
  for (UITextView *text in messagetext) 
  {
  
      for (UITextView *name in messagename) 
      {
  
  
      if ([text isKindOfClass:[UITextView class]] &amp;&amp; text.tag == button.tag &amp;&amp; text.tag== name.tag)
      {
  
               [tweetView setInitialText:[NSString stringWithFormat:@"Event name: %@. Download the app to check out the full details, including location, at: ", name.text]];
      }
  
     }
  
  }
  
  
  [tweetView addImage:[UIImage imageNamed:@"smallIcon 144 ipad.png"]];
  [tweetView addURL:url];
  [self presentModalViewController:tweetView animated:YES];
  
  }
  </code></pre>
  
  <p>I noticed that if I keep this line:</p>
  
  <pre><code>[tweetView addImage:[UIImage imageNamed:@"smallIcon 144 ipad.png"]];
  </code></pre>
  
  <p>an image appears, but the blue button tweet is off, so I can't tweet, while if I remove the line, there is no image, and i can tweet. why??</p>