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

  • SEARCH
  • Home
  • 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 8836077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:24:30+00:00 2026-06-14T09:24:30+00:00

I am using TWTweetComposeViewController for iOS 5 legacy in my app. For some reason,

  • 0

I am using TWTweetComposeViewController for iOS 5 legacy in my app. For some reason, I am receiving a "Too many arguments to method call, expected 1, have 2" error." I have tried looking for answers in similar questions, but they haven’t helped me so far.

Here is the code:

TWTweetComposeViewController *tweetSheet =
                [[TWTweetComposeViewController alloc] init];
                [tweetSheet setInitialText:@"%@", [[_items objectAtIndex:indexPath.row] objectForKey:@"redirect_url"]];
                [self presentModalViewController:tweetSheet animated:YES];

Any ideas? Thanks in advance.

Screenshot

  • 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-14T09:24:31+00:00Added an answer on June 14, 2026 at 9:24 am

    Like the error says, you have too many arguments. You need to use NSString’s stringWithFormat method to create your dynamic string:

    [tweetSheet setInitialText:[NSString stringWithFormat:@"%@", [[_items objectAtIndex:indexPath.row] objectForKey:@"redirect_url"]]];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I added Twitter to my iOS app. I'm using iOS 5's TWTweetComposeViewController in ShareKit.
I am using TWTweetComposeViewController, when available, to send tweets from inside my iOS app.
I know I can open the settings app in iOS 5 using [[UIApplication sharedApplication]
using VB.Net2010 I need to call a C# DLL The problem I have is
i am using Twitter with IOS - 5 integration. i used tweeting app provide
I'm using twitter sharing via TWTweetComposeViewController in my app. When i tried to send
I'm developing a iOs 5 app ( View in App Store ) with native
Using RestKit 0.10.1, I have objects served similar to this json format: {objects: [
I'm using the following code to get the user details from Twitter in iOS
I have a question about presenting the TWTweetComposerViewController as a modal view in iOS

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.