Search code examples
iossharekit

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. 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

I know it's a cause of absence of TWTweetComposeViewController which is used to input share text/picture. However, I still don't know how to implement it and support 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.

Liang


Solution

  • I have fixed ShareKit, please update. I do not have iOS4 device around to test, so please let me know, if it works. However, please answer my comments.