I am trying to save the time once the "user" reachs the Limit. So the limit is 10 for example and once he reachs this limit, i want to save the current time. Then he has to wait 1 hour to continue playing. I started doing this, but I already get an error, when I try this:
var CurrentTime = NSDate()
CurrentTime = NSUserDefaults.standardUserDefaults()
Error:
Cannot assign value of type 'NSUserDefaults' to type 'NSDate'
It seems like swift cannot save a 'NSDate' as a 'NSUserDefault'.