This question is a bit specific but I am going to ask it anyway. So I have properly followed all the instructions for ShareKit 2.0 installation from here: https://github.com/ShareKit/ShareKit/wiki/Installing-sharekit
Everything compiles fine and so-forth. The only file I have added to is the DefaultSHKConfigurator.m file with my information for the sharers.
So for example I call SHKMail
like this:
SHKItem *item = [SHKItem image:image title:@"Hey"];
[item setText:myText];
[item setURL:appURL];
if ([SHKMail canShare]) {
[SHKMail shareItem:item];
}
The first time it loads fine no issues, and closes fine. The second time I execute this code nothing happens on the device. This issue is not constrained to SHKMail, it happens will ALL the sharers. I have narrowed down the issue to the SHK.m
class.
In the showViewController
method, this code gets called the second time around:
// If a view is already being shown, hide it, and then try again
if (currentView != nil)
{
self.pendingView = vc;
[[currentView parentViewController] dismissModalViewControllerAnimated:YES];
return;
}
That code should not get called the second time I execute the first code snippet I posted. Anyway, what could be causing this? What else could I try to debug? Any ideas?
I think that anyone who helps me fully fix this issue, will get a 50 point bounty.
Thanks for anyone who attempts to answer this! :)