forked from funami/iOS_Twitter_sample
-
Notifications
You must be signed in to change notification settings - Fork 0
applideveloper/iOS_Twitter_sample
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
#iOS5のTwitter.frameworkのサンプル FNADetailViewController.m TWTweetComposeViewControllerのサンプル簡単です - (IBAction)tweete:(id)sender { if (![TWTweetComposeViewController canSendTweet]){ // エラー処理 return ; } NSDictionary *shop = self.detailItem; TWTweetComposeViewController *tvc = [[TWTweetComposeViewController alloc] init]; UIImage *image = self.photoImageView.image; [tvc addImage:image]; [tvc setInitialText:[NSString stringWithFormat:@"『%@』 - ",[shop objectForKey:@"name"]]]; NSURL *url = [NSURL URLWithString:[[shop objectForKey:@"urls"] objectForKey:@"pc"]]; [tvc addURL:url]; tvc.completionHandler = ^(TWTweetComposeViewControllerResult result){ [self dismissModalViewControllerAnimated:YES]; }; [self presentModalViewController:tvc animated:YES]; } 参照
About
Hotpepperのお店をつぶやいてみるサンプル
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Objective-C 100.0%