Replaced call to modalViewController with presentedViewController for iOS 6 compatibility
Along with previous commit - update for ARC compatibility