I\'m working on a small iPhone app, and I am using NSUserDefaults as my data persistence. It only has to keep track of a few things, such as some names and som
NSUserDefaults
Swift 3.0
if NSUserDefaults.standardUserDefaults().dictionaryRepresentation().contains({ $0.0 == "Your_Comparison_Key" }){ result = NSUserDefaults.standardUserDefaults().objectForKey(self.ticketDetail.ticket_id) as! String }