弹出警告窗口

func showError() {

let ac = UIAlertController(title: "Loading error", message: "There was a problem loading the feed; please check your connection and try again.", preferredStyle: .Alert)

ac.addAction(UIAlertAction(title: "OK", style: .Default, handler: nil))

presentViewController(ac, animated: true, completion: nil)

}

你可能感兴趣的:(弹出警告窗口)