如果要验证是否存储了某个键的某些内容,则第二个选项很好(Swift 3). if (NSUserDefaults.standardUserDefaults().object(forKey: "myKey") != nil) ...
確定! 回上一頁