Skip to content

Commit

Permalink
twitter sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
Dale Zak committed Oct 21, 2012
1 parent 624bf85 commit aa59216
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Classes/Controllers/A4GShareController.m
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,12 @@ - (void) sendTweet:(NSString*)tweet withURL:(NSString*)url {
if ([self canSendTweet]) {
TWTweetComposeViewController *twitterViewController = [[TWTweetComposeViewController alloc] init];
if (tweet != nil) {
[twitterViewController performSelector:@selector(setInitialText:) withObject:tweet];
[twitterViewController setInitialText:tweet];
//[twitterViewController performSelector:@selector(setInitialText:) withObject:tweet];
}
if (url != nil) {
[twitterViewController performSelector:@selector(addURL:) withObject:[NSURL URLWithString:url]];
[twitterViewController addURL:[NSURL URLWithString:url]];
//[twitterViewController performSelector:@selector(addURL:) withObject:[NSURL URLWithString:url]];
}
[self.controller presentModalViewController:twitterViewController animated:YES];
[twitterViewController release];
Expand All @@ -175,10 +177,12 @@ - (void) sendTweet:(NSString*)tweet withImage:(UIImage*)image {
if ([self canSendTweet]) {
TWTweetComposeViewController *twitterViewController = [[TWTweetComposeViewController alloc] init];
if (tweet != nil) {
[twitterViewController performSelector:@selector(setInitialText:) withObject:tweet];
[twitterViewController setInitialText:tweet];
//[twitterViewController performSelector:@selector(setInitialText:) withObject:tweet];
}
if (image != nil) {
[twitterViewController performSelector:@selector(addImage::) withObject:image];
[twitterViewController addImage:image];
//[twitterViewController performSelector:@selector(addImage:) withObject:image];
}
[self.controller presentModalViewController:twitterViewController animated:YES];
[twitterViewController release];
Expand Down

0 comments on commit aa59216

Please sign in to comment.