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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:08:56+00:00 2026-05-28T11:08:56+00:00

https://github.com/doubleencore/DETweetComposeViewController I followed twitter integration here for supporting twitter for both ios5 and ios4.

  • 0

https://github.com/doubleencore/DETweetComposeViewController

I followed twitter integration here for supporting twitter for both ios5 and ios4.

if ([DETweetComposeViewController canSendTweet]) {

    DETweetComposeViewControllerCompletionHandler completionHandler = ^(DETweetComposeViewControllerResult result) {
        switch (result) {
            case DETweetComposeViewControllerResultCancelled:
                NSLog(@"Twitter Result: Cancelled");
                break;
            case DETweetComposeViewControllerResultDone:
                NSLog(@"Twitter Result: Sent");
                break;
        }
        [self dismissModalViewControllerAnimated:YES];
    };

    DETweetComposeViewController *tcvc = [[[DETweetComposeViewController alloc] init] autorelease];
    [tcvc addImage:[UIImage imageNamed:@"YawkeyBusinessDog.jpg"]];
    [tcvc addURL:[NSURL URLWithString:@"http://www.DoubleEncore.com/"]];
    [tcvc addURL:[NSURL URLWithString:@"http://www.apple.com/ios/features.html#twitter"]];
    self.modalPresentationStyle = UIModalPresentationCurrentContext;
    [self presentModalViewController:tcvc animated:YES];

} 
else {
    self.oAuth = [[[OAuth alloc] initWithConsumerKey:kDEConsumerKey andConsumerSecret:kDEConsumerSecret] autorelease];
    TwitterDialog *td = [[[TwitterDialog alloc] init] autorelease];
    td.twitterOAuth = self.oAuth;
    td.delegate = self;
    td.logindelegate = self;
    [td show];
}

The tutorial didn’t specify what is self.oAuth so i imported oAuth in my interface file and declared oAuth as a property

I have the following problems now :

1) the code above worked when i didn’t put the completion handler block, after adding the handler the build is failing with error in DETweetAccountSelectorViewControllerDelegate in line

#import <Accounts/Accounts.h>

saying no such file or directory exist… which it didn’t when there was no completion handler. And yes i have now linked and unlinked to accounts framework more than 5 times now..so it was working before not now.

2) when i run the project without completion handler the twitter dialog pops up. but can’t post(authorization request comes up for my twitter app but after authorizing it gets stuck) ..the log in console is

discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate:

also if i close the dialog ..the program crashes because there is no code to dimiss the controller which i tried to solve using completion handler.

3) if any one have a simpler tutorial to integrate twitter for both ios4 and ios5 ..can you share..

Thanks

  • 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-28T11:08:56+00:00Added an answer on May 28, 2026 at 11:08 am

    I found the answer..there tutorial takes you in the opposite direction..waste my 5 hours on it..
    just have to initialize DETweetComposeViewController ..and the rest is taken care of.. in their tutorial.. they show twitter dialog .and can tweet function which will just confuse

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

Sidebar

Related Questions

I followed this tutorial: https://github.com/EllisLab/CodeIgniter/wiki/PDF-generation-using-dompdf However, I can't seem to set the path right.
I just setup Webby/Compass integration . ( https://github.com/Compass/compass/wiki/webby-integration ) Where do I put my
I am using SignalR(https://github.com/SignalR/SignalR) in my project. From here https://github.com/SignalR/SignalR/wiki/QuickStart-Hubs I got the idea
I'm using https://github.com/abraham/twitteroauth library. I already created my app on Twitter, the callbacks are
Here's are examples of git workflows: https://github.com/bard/sameplace/wiki/typical-git-workflow http://www.nabble.com/Git-workflow-overview-td16340337.html http://osteele.com/archives/2008/05/my-git-workflow Let's say you wanted to
I installed the https://github.com/pennersr/django-allauth package via pip. I followed the README.rst and after a
As found here - https://github.com/neave/touch-scroll : (function($) { // Define default scroll settings var
here is the gem: https://github.com/visionmedia/growl How can i tell if this a Mac only
I'm using clearance ( https://github.com/thoughtbot/clearance/wiki ) for authentication in my rails app. But I'm
I downloaded the JSON2.js from https://github.com/douglascrockford/JSON-js/blob/master/json2.js and it does not have implementation for JSON2.stringify()

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.