开发者

Sharekit Twitter Integration Broke in iOS 5

开发者 https://www.devze.com 2023-04-12 21:42 出处:网络
In previous iOS version开发者_Python百科s, using the Twitter functionality (with bit.ly)Works perfect.However, when I click submit to twitter, it posts, but doesn\'t remove the dialog.It sounds simila

In previous iOS version开发者_Python百科s, using the Twitter functionality (with bit.ly) Works perfect. However, when I click submit to twitter, it posts, but doesn't remove the dialog. It sounds similar to this bug (in fact the cancel button doesn't work either):

https://github.com/ideashower/ShareKit/issues/254

I tried the solution listed, but it doesn't work. Any ideas?

Thanks!


I got an answer on the actual bug

"Now that the NDA is lifted, I just changed the two instances of [[currentView parentViewController] dismissModalViewControllerAnimated:YES] in SHK.m to [currentView dismissModalViewControllerAnimated:YES].

This gist is my SHK.m: https://gist.github.com/1281191"


I've changed code in function hideCurrentViewControllerAnimated and it works perfect.

My code:

- (void)hideCurrentViewControllerAnimated:(BOOL)animated
{
    if (isDismissingView)
        return;

    if (currentView != nil)
    {
        self.isDismissingView = YES;
        [currentView dismissModalViewControllerAnimated:YES];
        NSLog(@"dismiss");
    }
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号