Xcode错误:类型' int'的值没有会员' Type' /但在那种情况下我应该使用哪个成员?

时间:2016-07-26 09:17:31

标签: swift xcode cocoa appkit nsalert

在那种情况下我应该使用哪个成员?

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

0 个答案:

没有答案