【问题标题】:Sharekit Twitter Integration Broke in iOS 5iOS 5 中的 Sharekit Twitter 集成中断
【发布时间】:2011-12-05 17:44:03
【问题描述】:

在以前的 iOS 版本中,使用 Twitter 功能(通过 bit.ly)可以完美运行。但是,当我单击提交到 twitter 时,它会发布,但不会删除对话框。听起来类似于这个错误(实际上取消按钮也不起作用):

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

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

谢谢!

【问题讨论】:

    标签: ios xcode twitter sharekit


    【解决方案1】:

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

    “既然NDA解除了,我只是把SHK.m中[[currentView parentViewController]dismissModalViewControllerAnimated:YES]的两个实例改成了[currentViewdismissModalViewControllerAnimated:YES]。

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

    【讨论】:

    • if ([currentView parentViewController] != nil) 也必须更改为 if (currentView != nil),就像 itruf 的回答一样。
    【解决方案2】:

    我已经更改了函数 hideCurrentViewControllerAnimated 中的代码,它运行良好。

    我的代码:

    - (void)hideCurrentViewControllerAnimated:(BOOL)animated
    {
        if (isDismissingView)
            return;
    
        if (currentView != nil)
        {
            self.isDismissingView = YES;
            [currentView dismissModalViewControllerAnimated:YES];
            NSLog(@"dismiss");
        }
    }
    

    【讨论】:

      猜你喜欢
      • 2011-04-29
      • 2013-03-28
      • 1970-01-01
      • 1970-01-01
      • 2012-05-02
      • 2013-02-21
      • 1970-01-01
      • 2013-08-16
      • 1970-01-01
      相关资源
      最近更新 更多