我有一类名为myClassCalculate有以下方法如何在iOS应用程序处于后台时调用Method?
- (void) accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration {
NSLog(@"Accelerometer is called");
}
我正在对象
- (void)applicationDidFinishLaunching:(UIApplication *)application {
// Override point for customization after app launch
myObject = [[myClassCalculate alloc] init];
现在,当应用程序会在后台去了,我想这
- (void) accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration {
我该怎么办,以便这种方法会在应用程序背景中调用
谢谢
你能告诉我,该文件陈述了吗? –
你能指定它在哪里写吗? –
我已经接受了你的答案,并提出了上传,并研究了文档,但是WWDC在backgroun中声明了一些关于加速计的内容? –