I'm trying to check whether a specific key in NSUserDefault exists. The problem is that it keep returning error. How come it returns lldb
error?
if let data = NSUserDefaults.standardUserDefaults().objectForKey("teams") as? NSData {
}
I'm trying to check whether a specific key in NSUserDefault exists. The problem is that it keep returning error. How come it returns lldb
error?
if let data = NSUserDefaults.standardUserDefaults().objectForKey("teams") as? NSData {
}
Copyright © 2021 Jogjafile Inc.
This code works for me. Try it :