Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8476373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:09:36+00:00 2026-06-10T18:09:36+00:00

Possible Duplicate: iOS 5 Attach photo to Twitter with Twitter API Some Twitter clients

  • 0

Possible Duplicate:
iOS 5 Attach photo to Twitter with Twitter API

Some Twitter clients have a photo tweet feature. Does the iOS 5 Twitter API also include a way to tweet a photo?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T18:09:38+00:00Added an answer on June 10, 2026 at 6:09 pm

    Yes of course

    if ([[[UIDevice currentDevice] systemVersion] floatValue] > 5.0) {
            // Create the view controller
            TWTweetComposeViewController *twitter = [[TWTweetComposeViewController alloc] init];
    
            // Optional: set an image, url and initial text
            [twitter addImage:[UIImage imageName:@"YourImage.png"]];
            [twitter setInitialText:@"I created this photo Download http://www.twetter.com"];
    
            // Show the controller
            [self presentModalViewController:twitter animated:YES];
    
            // Called when the tweet dialog has been closed
            twitter.completionHandler = ^(TWTweetComposeViewControllerResult result) 
            {
                NSString *title = @"Tweet Status";
                NSString *msg; 
    
                if (result == TWTweetComposeViewControllerResultCancelled)
                    msg = @"Tweet compostion was canceled.";
                else if (result == TWTweetComposeViewControllerResultDone)
                    msg = @"Tweet composition completed.";
    
                // Show alert to see how things went...
                UIAlertView* alertView = [[UIAlertView alloc] initWithTitle:title message:msg delegate:self cancelButtonTitle:@"Okay" otherButtonTitles:nil];
                [alertView show];
    
                // Dismiss the controller
                [self dismissModalViewControllerAnimated:YES];
            };
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: iPhone development on PC I have developed an iOS native application. My
Possible Duplicate: Is there a barcode recognition framework for iOS? I've done some iPhone
Possible Duplicate: Get twitter Follower in IOS 5 How to access Twitter Account Followers
Possible Duplicate: saving data in iOS Do we have a provision profile to select
Possible Duplicate: Posting Photo to facebook fan page via iOS app by regular non-admin
Possible Duplicate: How to parse JSON in iOS App I have the following json:
Possible Duplicate: iOS: to ARC or not to ARC? Pros and Cons i have
Possible Duplicate: UISlider and UIScrollView using iOS SDK 4.3. I've found when I have
Possible Duplicate: How to make an expression clickable on iOS? On Twitter and Facebook,
Possible Duplicate: Getting current device language in iOS? I have an app which uses

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.