This is the code i used to get two date variables from AppDelegate. But the variables never contain anything they just seem to be blank. My question is am i doing something wrong with the code?
AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
NSTimeInterval secondsBetween = [appDelegate->enterForgroundDate timeIntervalSinceDate:appDelegate->enterBackgroundDate];