GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - funami/iOS_Twitter_sample: Hotpepperのお店をつぶやいてみるサンプル

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
hotpepper_twitter_sample.xcodeproj
hotpepper_twitter_sample.xcodeproj
 
 
hotpepper_twitter_sample
hotpepper_twitter_sample
 
 
README
README
 
 

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

Readme
Activity

Stars

3 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.