美文网首页
弹出警告窗口

弹出警告窗口

作者: lbhw | 来源:发表于2016-04-19 16:47 被阅读29次
    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)
    
    }
    

    相关文章

      网友评论

          本文标题:弹出警告窗口

          本文链接:https://www.haomeiwen.com/subject/llczlttx.html