我在应用程序中的要求是我必须检测从应用程序计数的步骤,即使应用程序在后台运行,这应该继续.我研究过这个; 通常苹果不允许加速计数据在后台,但我想使用Core Motion我们可以实现它.
这是我的代码:
- (void)applicationWillResignActive:(UIApplication *)application
{
/*
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 to pause the …Run Code Online (Sandbox Code Playgroud) 有没有办法从移动网络获取国家/地区代码.我们可以通过代码获取设备中存在的SIM的国家名称吗?
请用一些有效的代码帮助我.我检查了CoreTelephony Framework但是ddnt获得了成功.
提前致谢 !!