I am trying to present an alert using swift. This is the code I used from viewDidLoad but nothing happens when the code is run. Can someone help?
var alert = UIAlertController(title: "test title",
message: "test message",
preferredStyle: .Alert)
self.presentViewController(alert, animated: true, completion:nil)