i have a value in NSUserdefaults and every time i run the code it will print "Optional("value")" i tried several unwrapping techniques and many examples in searches yet nothing seems to solve my problem
the code
let SaveData = NSUserDefaults.standardUserDefaults()
if(SaveData.valueForKey("newString") != nil){
print(SaveData.valueForKey("newString") as! String!)
print(SaveData.valueForKey("newString") as! String)
print(SaveData.valueForKey("newString")!)
// SD.executeChange("INSERT INTO \(ImageIs)Array (\(ImageIs)) VALUES ('\(abc)')")
SaveData.setValue(nil, forKey: "newString")
}