Try using
self.window?.rootViewController?.presentViewController(importAlert, animated: true, completion: nil)
All you need is a viewController object to present the AlertController from.
In Swift 4:
self.window?.rootViewController?.present(importAlert, animated: true, completion: nil)