简体   繁体   English

iOS4中的Sharekit2.0共享崩溃:NSAssert(vc.presentingViewController == nil,@“ vc现在必须不在视图层次结构中

[英]Sharekit2.0 share crash in iOS4: NSAssert(vc.presentingViewController == nil, @"vc must not be in the view hierarchy now

I have latest Sharekit2.0 included in my project. 我的项目中包含最新的Sharekit2.0。 It's OK on iOS5 and iOS6.However in iOS4, I could not finish share to twitter because of an issue: " NSAssert(vc.presentingViewController == nil, @"vc must not be in the view hierarchy now"); //ios4 and older", which is included in SHK.m 在iOS5和iOS6上都可以。但是在iOS4中,由于一个问题,我无法完成与Twitter的共享:“ NSAssert(vc.presentingViewController == nil,@” vc现在必须不在视图层次结构中“); // ios4和更老”,包含在SHK.m中

I know it's a cause of absence of TWTweetComposeViewController which is used to input share text/picture. 我知道这是缺少用于输入共享文本/图片的TWTweetComposeViewController的原因。 However, I still don't know how to implement it and support ios4 ? 但是,我仍然不知道如何实现它并支持ios4?

I appreciate if somebody could help me on it and better have lines of demo code :). 我很高兴有人可以帮助我,并更好地编写演示代码:)。 It's better not to change the Sharekit submodule. 最好不要更改Sharekit子模块。

Liang

I have fixed ShareKit, please update. 我已经修复了ShareKit,请更新。 I do not have iOS4 device around to test, so please let me know, if it works. 我没有可以测试的iOS4设备,因此,如果可以运行,请告诉我。 However, please answer my comments. 但是,请回答我的评论。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ios如何使用带有sso的ShareKit2.0仅登录Facebook? - ios How to just login to facebook using ShareKit2.0 with sso? 在Sharekit2.0中自定义到Facebook的帖子 - Customizing the post to facebook in Sharekit2.0 Sharekit2.0:如何直接共享到Facebook和Twitter,而不是通过UIActionSheet? - Sharekit2.0: how can I directly share to facebook and twitter, rather than via UIActionSheet? 当从表视图中按下按钮时,“试图在视图不在窗口层次结构中的VC上显示VC!” - “Attempt to present VC on VC whose view is not in the window hierarchy!” when button pressed from tableview 在代码或IB中添加子VC时视图层次结构的差异 - Difference in view hierarchy when adding a child VC in code or IB 更改视图使我一直试图在视图不在窗口层次结构中的vc上呈现vc1 - Changing views keeps giving me attempt to present vc1 on vc whose view is not in the window hierarchy 警告:尝试显示视图不在窗口层次结构中的vc - Warning: Attempt to present vc whose view is not in the window hierarchy ShareKit 2.0 Facebook分享网址 - ShareKit 2.0 facebook share URL 在没有任何导航控制器的情况下,如何从vc1.view过渡到vc2.view? - How to transition from vc1.view to vc2.view in iOS, without any navigation controller? 将数据从VC传递到TabBar到VC(iOS) - Segue data from VC to TabBar to VC (iOS)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM