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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:49:25+00:00 2026-05-27T19:49:25+00:00

I am facing keyboard issue in sharekit for iOS5 only.While posting text content to

  • 0

I am facing keyboard issue in sharekit for iOS5 only.While posting text content to twitter.

enter image description here.I have attached the screenshot for the screen in which I am facing the issues
1.Cancel button is not working
2.Keyboard is not disappearing.

If any one has fixed the issue please help me.

  • 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-27T19:49:25+00:00Added an answer on May 27, 2026 at 7:49 pm

    Edit:

    Fix Issue #254 – IOS 5 Cancel Button Fix for issue
    https://github.com/ideashower/ShareKit/issues/254.

    In iOS 5, a modally presented view controller has a nil
    parentViewController, and instead the presenter is
    presentingViewController. Changed the attempts to dismiss the view
    using the parentViewController to check for the iOS 5 selector, and
    used it if available.

    So get the latest ShareKit.

    Edit 2:

    I recommend to use TWTweetComposeViewController if the device has iOS 5.

    Class TWTweetComposeViewControllerClass = NSClassFromString(@"TWTweetComposeViewController");
    
         if (TWTweetComposeViewControllerClass != nil) {
              if([TWTweetComposeViewControllerClass respondsToSelector:@selector(canSendTweet)]) {
                  UIViewController *twitterViewController = [[TWTweetComposeViewControllerClass alloc] init];
    
                  [twitterViewController performSelector:@selector(setInitialText:) 
                                              withObject:NSLocalizedString(@"TwitterMessage", @"")];
                  [twitterViewController performSelector:@selector(addURL:) 
                                              withObject:url];
    
                   [twitterViewController performSelector:@selector(addImage:) 
                                               withObject:[UIImage imageNamed:@"yourImage.png"]];
                    [self.navigationController presentModalViewController:twitterViewController animated:YES];
                    [twitterViewController release];
                    }
                } else {
                    [SHK flushOfflineQueue];
                    SHKItem *item = [SHKItem URL:url title:NSLocalizedString(@"TwitterMessage", @"")];
    
                    // Get the ShareKit action sheet
                    SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];
    
                    // Display the action sheet
                    [actionSheet showInView:[self.view superview].window];
                }
    

    Add in your h file

    #if defined(__IPHONE_5_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_5_0
    #import <Twitter/Twitter.h>
    #import <Accounts/Accounts.h>
    #endif
    

    And add the Twitter framework and Accounts as optional Libraries.

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

Sidebar

Related Questions

I am facing an issue, I have username & password fields on activity, now
friends, i am facing an issue related to android phone screen orientation If i
Been Facing this issue,I Have as my view <%= form_for(:pin, :url => {:action =>fees})
I have a public facing website that has been receiving a number of SQL
I am facing strange issue on Windows CE: Running 3 EXEs 1)First exe doing
Im facing an issue which I believe to be VAO-dependant, but Im not sure..
im facing a problem where i need some advice. I want to have a
I have tried all the normal methods of faking keyboard actions (SendInput/SendKeys/etc) but none
facing some strange behavior in OSB, i have configured WLS with MQ in client
Im facing a problem. I have a listing page in which i list all

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.