steipete/PSTAlertController — pull request #5 by benrudhart (2014-11-20 13:01:33+00:00)
Title: default to frontmost presented VC if controller is nil

It's possible that UIApplication.sharedApplication.keyWindow.rootViewController already modally presented another viewController. Therefore the default VC should be the frontmost presented VC of the rootViewController