I am checking to measure how much time is left for the remaining background job. I read a few examples and saw that everyone does it this way:
UIApplication *app = [UIApplication sharedApplication]; double *bgTime = app.backgroundTimeRemaining; NSLog(@"Background Time Remaining: %f", bgTime);
But I get a very big value, for example, 1797693134862315708145274237317043567980705675258449965989 ...
I understand that [[UIApplication sharedApplication] backgroundTimeRemaining] is NSTimeInterval, but is there a way to convert this to only x seconds?
I also tried this one , but that will not work.
Any help would be appreciated. Thanks.
source share