我有一類名爲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中聲明瞭一些關於加速計的內容? –