ideashower/ShareKit — pull request #310 by corvino (2011-10-20 21:04:34+00:00)
Title: Fix Issue #254 - IOS 5 Cancel Button

Fix for issue https://github.com/ideashower/ShareKit/issues/254.

In iOS 5, a modally presented view controller has a nil parentViewController, and instead the presenter is presentingViewController. Changed the attempts to dismiss the view using the parentViewController to check for the iOS 5 selector, and used it if available.