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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:48:06+00:00 2026-05-27T20:48:06+00:00

After a completed tweet from TWTweetComposeViewController , my app locks up. Going out to

  • 0

After a completed tweet from TWTweetComposeViewController, my app locks up. Going out to the home screen and coming back seems to fix this, and the clock still ticks, but no touches register to any of my views/controls.

Thinking something weird must be happening in my app, I made a fresh utility-app-template project, linked it w/ Twitter.framework, and redefined the info UIButton‘s IBAction method to this:

- (IBAction)showInfo:(id)sender
{   
    TWTweetComposeViewController *twt = [[TWTweetComposeViewController alloc] init];
    [twt setInitialText:@"some garbage"];
    [twt addURL:[NSURL URLWithString:@"http://google.com"]];
    twt.completionHandler = ^(TWTweetComposeViewControllerResult r) { NSLog(@"it happened: %d",r); };
    [self presentViewController:twt animated:YES completion:NULL];
    [twt release];
}

After canceling (which takes 2 taps, interestingly), it can be brought back up by tapping the ‘i’, but after submitting, the ‘i’ is non-responsive until backgrounding the app.

Has anyone used this successfully? Or am I blatantly missing something?

  • 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-27T20:48:07+00:00Added an answer on May 27, 2026 at 8:48 pm

    The problem here is that you are presenting a modal view controller (the twitter view controller is modal); however, your completion handler isn’t dismissing the modal view controller when finished. This leaves the twitter controller to capture all the touches on the screen preventing your app from functioning properly.

    You need to make sure you add [self dismissModalViewControllerAnimated:YES]; to your completion handler.

    Something like this:

    (IBAction)showInfo:(id)sender 
    {   
        TWTweetComposeViewController *twt = [[TWTweetComposeViewController alloc] init];
        [twt setInitialText:@"some garbage"];
        [twt addURL:[NSURL URLWithString:@"http://google.com"]];
        twt.completionHandler = ^(TWTweetComposeViewControllerResult result) { 
          switch (result) {
            case TWTweetComposeViewControllerResultCancelled:                    
               break;
    
            case TWTweetComposeViewControllerResultDone:
               break;
    
            default:
               break;
          }
          [self dismissModalViewControllerAnimated:YES];
        };
    
        [self presentModalViewController:twt animated:YES];
    

    };

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

Sidebar

Related Questions

I created iOS app using PhoneGap version 0.9.6 long back. Now I am going
I am downloading files from web server programmatically. After download is completed, I checked
How can I launch an application with administrator rights after I have completed an
Is there a UIView method that is called called after drawRect is completed?
When executing :make from vim, after make is complete it automatically jumps to a
After the suggestion to use a library for my ajax needs I am going
I need to load images after page load completed in ASP.Net without using JQuery.
Is there the option to check syntax after I have completed create a query?
I am finding that isAnimating is returning true even after it has completed the
ive got no problem with inserting the transaction after puchased is completed. the problem

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.