Skip to content

Instantly share code, notes, and snippets.

@fmtonakai
Created March 7, 2013 09:56
Show Gist options
  • Save fmtonakai/5106889 to your computer and use it in GitHub Desktop.
Save fmtonakai/5106889 to your computer and use it in GitHub Desktop.
UIActivityViewControllerでTwitterの時だけハッシュタグをつける実装呼び出し
- (IBAction)share:(id)sender
{
ActivityText *text = [[ActivityText alloc] initWithText:@"本文はこちらです。" hashTag:@"ハッシュタグ"];
UIActivityViewController *avc = [[UIActivityViewController alloc] initWithActivityItems:@[text] applicationActivities:nil];
[self presentViewController:avc animated:YES completion:nil];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment