ShareKit
ShareKit copied to clipboard
iOS 5 view won't close: parentViewController always nil
Hello,
bear with me, this is my first github submission, but it may be useful: in iOS 5, dismissing a viewController by asking the parentViewControll to dismiss it, no longer works (as documented in the Help manuals). Instead it is recommended to ask the presentingViewController to do so. That said, in SHK.m -> hideCurrentViewControllerAnimated: after testing the parentViewController (which is always nil in iOS 5), SHK should add
else if ([currentView respondsToSelector:@selector(presentingViewController)] && [currentView presentingViewController] != nil)
{
self.isDismissingView = YES;
[[currentView presentingViewController] dismissModalViewControllerAnimated:animated];
}
A feedback wether this works for others and how to commit such a change would be helpful, thank you - Oliver
Huge thanks!!! You solved me a huge bug (after sharing the window won't close until killing the app!!!). Thanks!!!
Thanks,this really help me too much. i have solved this BUG by your recommend.
Thank you so much, it absolutly works for me. Suggest a commit !
Thanks this works perfectly.
Works for me too, Thanks!
Thank you so much! You saved my life
Thank a lot!