Sharekit Twitter 集成在 iOS 5 中崩溃

发布于 2024-12-09 14:40:44 字数 311 浏览 1 评论 0原文

在以前的 iOS 版本中,使用 Twitter 功能(通过 bit.ly)效果非常好。但是,当我单击“提交到 Twitter”时,它会发布内容,但不会删除该对话框。听起来与此错误类似(事实上取消按钮也不起作用):

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

我尝试了列出的解决方案,但它不起作用。有什么想法吗?

谢谢!

In previous iOS versions, 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!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

凤舞天涯 2024-12-16 14:40:44

我得到了关于实际错误的答案

“现在 NDA 已解除,我只是将 SHK.m 中 [[currentView ParentViewController]dismissModalViewControllerAnimated:YES] 的两个实例更改为 [currentViewdismissModalViewControllerAnimated:YES]。

这个要点是我的 SHK。米:https://gist.github.com/1281191"

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"

难理解 2024-12-16 14:40:44

我已经更改了函数 hideCurrentViewControllerAnimated 中的代码,它工作完美。

我的代码:

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

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

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");
    }
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文