Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development > iPhone SDK Development - Advanced Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 02-05-2011, 11:13 PM   #1 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 4
UrbanZenMaster is on a distinguished road
Default ShareKit - Twitter- modalviewcontroller glitch/issue?

So i'm having this problem with ShareKit... i have viewcontrollers attached to a tabbar... if i launch an SHKActionSheet directly from one of those VCs it works fine, but it i use a modalviewcontroller and launch ShareKit from it messes up SHK across the app... for example if i click on twitter from sharekit then cancel twitter, the next time i use ShareKit it doesn't do anything when anything but facebook it clicked on... can i not launch sharekit from a modalviewcontroller, or is there a way to fix this?

- (IBAction)shareButtonPressed
{

NSString *someText = [NSString stringWithFormat:@"%@\n\n%@", sayingText.text, authorText.text];

RandomQuoteShareViewController *shareView = [[RandomQuoteShareViewController alloc] init];
shareView.shareText = someText;

[self presentModalViewController:shareView animated:YES];

}

then this code is in viewDidLoad of the modalview:

SHKItem *item = [SHKItem text:someText];

SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];

// Display the action sheet
[actionSheet showFromTabBar:self.view];
UrbanZenMaster is offline   Reply With Quote
Old 03-03-2011, 01:53 PM   #2 (permalink)
Registered Member
 
Join Date: Mar 2011
Posts: 1
phishee is on a distinguished road
Default

Quote:
Originally Posted by UrbanZenMaster View Post
So i'm having this problem with ShareKit... i have viewcontrollers attached to a tabbar... if i launch an SHKActionSheet directly from one of those VCs it works fine, but it i use a modalviewcontroller and launch ShareKit from it messes up SHK across the app... for example if i click on twitter from sharekit then cancel twitter, the next time i use ShareKit it doesn't do anything when anything but facebook it clicked on... can i not launch sharekit from a modalviewcontroller, or is there a way to fix this?

- (IBAction)shareButtonPressed
{

NSString *someText = [NSString stringWithFormat:@"%@\n\n%@", sayingText.text, authorText.text];

RandomQuoteShareViewController *shareView = [[RandomQuoteShareViewController alloc] init];
shareView.shareText = someText;

[self presentModalViewController:shareView animated:YES];

}

then this code is in viewDidLoad of the modalview:

SHKItem *item = [SHKItem text:someText];

SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];

// Display the action sheet
[actionSheet showFromTabBar:self.view];
Did you ever find a solution to this? I am having similar issues with ShareKit when I load another view and then return to my RootViewController. After that, ShareKit fails to be presented when my "share" button is pressed - just a quick blink, nothing logged either.

Any ideas?

Thanks - phishee
phishee is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 397
16 members and 381 guests
Brandt, coolman, fredidf, Free App Monster, givensur, iAppDeveloper, jbro, Kryckter, locombiano89, Mah6447, Meoz, simplymuzik3, SLIC, stevenkik, Tomsky, WeaselPig
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,646
Threads: 94,111
Posts: 402,862
Top Poster: BrianSlick (7,990)
Welcome to our newest member, locombiano89
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:51 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0