pokeb/asi-http-request — pull request #295 by gcox (2011-12-01 18:54:02+00:00)
Title: Fixed bug preventing ASIAuthenticationDialog from being dismissed

In iOS 5, the ASIAuthenticationDialog could not be dismissed using either the Cancel button or automatically by successfully logging in.
The bug is due to a change in UIViewController in iOS 5. The class & instance "dismiss" methods are using [UIViewController parentViewController] which, as of iOS 5, no longer returns the presenting view controller. A new property called 'presentingViewController' was added in iOS 5 to make up for this.

Changed the class & instance dismiss methods to use the "presentingViewController" property if it is available (iOS 5+). If not, it falls back to the "parentViewController" property.

This was previously reported in issue #227 and was closed by the creator for some reason.