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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:45:30+00:00 2026-06-13T10:45:30+00:00

I am using sharekit with a cocos2d application (app is throughout landscape), I am

  • 0

I am using sharekit with a cocos2d application (app is throughout landscape), I am getting no error, but the share screen that comes up, is in portrait mode, covering roughly 1/3 of the screen. Keyboard which pops up is in Landscape mode (as expected). Only “cancel” button is visible.

The Code:

self.vc =[[ViewController alloc] init];

[[[CCDirector sharedDirector] openGLView] addSubview:self.vc.view];
[[SHK currentHelper] setRootViewController:vc];

[[SHK currentHelper] setCurrentView:vc];

SHKItem *item;
item  = [SHKItem text:@"I HATE MOSQUITOS"];
[SHKFacebook shareItem:item];

Library Verison :
ShareKit 2.0

Extra Info :

I tried using SHKMail component too, that too is behaving as SHKFacebook part.

Regards,
Ishan

  • 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-13T10:45:31+00:00Added an answer on June 13, 2026 at 10:45 am

    I guess you are having this problem because you create ViewController in a wrong way.

    Your vc doesn’t know about your current orientation because you don’t show it as a modal nor you added it to the navigation stack.

    Probably, there is a much better way like you can use your application root controller.

    You can probably get the right controller like this:

    UIViewController* vc = [[(AppDelegate*)[[UIApplication sharedApplication] delegate] window] rootViewController];
    

    or like this:

    [(AppDelegate*)[[UIApplication sharedApplication] delegate] navController];
    

    Depends on what you have in your AppDelegate (because of cocos2d templates)

    So then do [[SHK currentHelper] setRootViewController:vc]; and everything will be ok. By the way, i didn’t find the method setCurrentView in SHK maybe because of versions, but if you have to set some view to SHK just use vc.view or application’s window. Don’t do anything to your GLView.

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

Sidebar

Related Questions

I am using ShareKit. It's working properly with Twitter API, but getting error in
I am creating an app for Facebook and twitter integration using sharekit. That works
Currently did ios5 twitter integration in my app using Sharekit framework but I came
I'm using sharekit in my iphone app to send text to twitter, but i
I am using ShareKit and BCFads sdk in my iPhone app. When I build
I am using ShareKit to allow the user of an iPad application to Tweet
I'm using ShareKit to post to Facebook from a PhoneGap app which I'm working
I added Twitter to my iOS app. I'm using iOS 5's TWTweetComposeViewController in ShareKit.
I have a project containing cocos2d framework, sharekit, asi & json. I've noticed that
I'm using ShareKit 0.2.1 on Xcode 4.2 (iOS SDK 5) to share text on

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.