小编Max*_*iel的帖子

由CACurrentMediaTime()引起的体系结构i386编译错误的未定义符号

我正在制作一个显示计时器的iOS应用程序.在用户按下主页按钮后,我不认为我可以保持计时器运行,所以我想记录用户退出应用程序的时间,并使用他们重新进入应用程序更新计时器的时间.这是我试过的代码:

- (void)applicationWillResignActive:(UIApplication *)application
{
    double currentTime = CACurrentMediaTime(); 
    NSLog(@"%g", currentTime);
    /*
     Sent when the application is about to move from active to inactive state. This can     occur for certain types of temporary interruptions (such as an incoming phone call or SMS     message) or when the user quits the application and it begins the transition to the background state.
     Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method …
Run Code Online (Sandbox Code Playgroud)

core-animation timer objective-c ios

15
推荐指数
1
解决办法
7342
查看次数

标签 统计

core-animation ×1

ios ×1

objective-c ×1

timer ×1