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 7011757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:10:04+00:00 2026-05-27T22:10:04+00:00

is it possible (if yes how) to be able to send a tweet by

  • 0

is it possible (if yes how) to be able to send a tweet by pressing OtherButtonTitles button in a UIAlertView?

My code does a calculation upon a button press in “IBAction” and returns the result in a string as the “message” in “UIAlertView”. i would like to add a second button, in “OtherButtonTitles”, which when click will bring up the native tweeting page. but i dunno how to link the button to send a tweet.

    else{

    NSString *str = [[NSString alloc] initWithFormat:@"You require an average GPA of at least %.2f to achieve your Goal of %@", gpagoal, (NSString *)[myPickerDelegate.myGoal objectAtIndex: [myPicker selectedRowInComponent:0]]]; 

    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Nothing is Impossible" 
                                                    message:str 
                                                   delegate:self 
                                          cancelButtonTitle:@"Good Luck" 
                                          otherButtonTitles:@"Tweet",nil];

    //show alert
    [alert show];
    [alert release];
    NSLog(@"All Valid");
}

should it be something like

otherButtonTitles:@"Tweet", [self sendEasyTweet:(something here, dunno what to add)]];

“- (IBAction)sendEasyTweet:(id)sender” is a method i made to call up the tweeter composer with a standalone button. but due to the design of the app, i would like the tweeter button to be shown with the UIAlertView and not as a standalone.

  • 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-05-27T22:10:04+00:00Added an answer on May 27, 2026 at 10:10 pm

    It is, but you cannot set it directly. You have to implement the UIAlertViewDelegate and catch the method that gets executed when a button is pressed.

    UIAlertViewDelegate protocol (look for – alertView:clickedButtonAtIndex:)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just would like to know if it is possible (and if yes how)
May be possible in css with out change HTML if yes please tell me
Yes, I am needing to know what the total number possible IPs in the
Is this combination possible at all? If yes, will I still need to buy
Is it possible to read WPF ResourceDictionaries from WinForms? If yes, how?
Is it possible to know that a HTTP request is from Ajax?If yes, how?
is it possible to programatically increase the JVM android machine to 10MB? If yes
Is it possible to write Remote Service in Android without aidl ? If yes
I found a topic on MSDN that talks that yes, this is possible. I
Is it possible to make a ComboBox searchable ? If yes, how ? I

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.