ios - non-public classes: NSCalendarDate, NSTask -
when upload app store, have problems
non-public classes: nscalendardate, nstask
but use nstimer
make own stopwatch
this source code
self.timer = [nstimer scheduledtimerwithtimeinterval:1 target:self selector:@selector(stopwatch) userinfo:nil repeats:yes] ;
my "pause" method
pausestart = [nsdate datewithtimeintervalsincenow:0]; previousfiredate = [self.timer firedate]; [self.timer setfiredate:[nsdate distantfuture]];
my "resume" method
float pausetime = -1*[pausestart timeintervalsincenow]; [self.timer setfiredate:[nsdate datewithtimeinterval:pausetime sincedate:previousfiredate]];
i have nstimer in appdelegate
appdelegate* appdelegate = (appdelegate*)[[uiapplication sharedapplication] delegate]; appdelegate.delaytimer = [nstimer scheduledtimerwithtimeinterval:1 target:self selector:@selector(stopwatch) userinfo:nil repeats:yes];
i run in ios6
could please show me root cause?
thanks much
i must remove mogenerator (https://github.com/rentzsch/mogenerator) library resolve problems
i don't know why project use private apis
Comments
Post a Comment