Take the tour ×  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):   I tried the solution listed, but it doesn't
work. Any ideas?   share|improve this question add comment  2
Answers  up vote 5 down vote accepted  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"  share|improve this answer That
does not work for me. –  Luc Dec 7 '11 at 5:57 if ([currentView
parentViewController] != nil) also has to change to if
(currentView != nil) like in itruf's answer. –  Protocole Feb 7
'12 at 6:45 add comment  I've changed code in function
hideCurrentViewControllerAnimated and it wo