1

在那种情况下我应该使用什么成员?

let alertController = NSAlert(title: nil, message: "Place Not Found", preferredStyle: NSAlertFirstButtonReturn.Type)

整个街区:

if localSearchResponse == nil{
                    let alertController = NSAlert(title: nil, message: "Place Not Found", preferredStyle: NSAlertFirstButtonReturn.Type)
                    alertController.addAction(NSAlertDelegate(title: "Dismiss", style: NSAlertStyle.Default, handler: nil))
                    self.presentViewController(alertController, animated: true, completion: nil)
                    return
4

0 回答 0