Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.65 KB  |  hits: 13  |  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. How do you tweet multiple UITextField with TWTweetComposeViewController?
  2. @property (nonatomic, strong) IBOutlet UITextField *theWorld;
  3. @property (nonatomic, strong) IBOutlet UITextField *isGreen;
  4. @property (nonatomic, strong) IBOutlet UITextField *andBeautiful;
  5.        
  6. {
  7.     TWTweetComposeViewController *tweetSheet =
  8.     [[TWTweetComposeViewController alloc] init];
  9.  
  10.     [tweetSheet setInitialText:
  11.      theWorld.text];
  12.  
  13.     [self presentModalViewController:tweetSheet animated:YES];
  14. }
  15.        
  16. NSString *text = [NSString stringWithFormat:@"%@ %@ %@",
  17.                            theWorld.text, isGreen.text, andBeautiful.text];
  18. [tweetSheet setInitialText:text];