In my app, I am having a need for Twitter API integration.
I want to detect the dismissing of the modal view which comes up for the authentication and want to display alert when that modal view is dismissed.
I found the code for presentModalViewController in the file but could not get dismissModalViewController code at any place.
What should I do?
If you want to detect when a modal view controller has been dismissed, you can implement
If implemented, this method will be called as soon as the view has, well, disappeared…
More details at http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instm/UIViewController/viewDidDisappear:
OR
An alternative is creating a delegate protocol and implementing a method that gets called when the login process has concluded. This gives you more flexibility as you can call different methods depending on whether the login was successful or not etc…