Attempting to store the variable DateInstalled
when the app is first installed, but each time the app loads this variable is overridden by the new date.
Hey @Curtis Cowan try with this
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
let firstLaunch = NSUserDefaults.standardUserDefaults().boolForKey("FirstLaunchTime")
if firstLaunch {
println("Not First launch")
}
else {
println("First launch")
NSUserDefaults.standardUserDefaults().setObject(NSDate(), forKey:"FirstLaunchTime")
}
return true
}