title: How can I call Method while app is in background in iOS?
body: <p>I have one class name as myClassCalculate have the following method</p>
  
  <pre><code>- (void) accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration {
  
  NSLog(@"Accelerometer is called");
  
  }
  </code></pre>
  
  <p>I am making object in</p>
  
  <pre><code>    - (void)applicationDidFinishLaunching:(UIApplication *)application {    
  
  
      // Override point for customization after app launch
         myObject = [[myClassCalculate alloc] init];
  </code></pre>
  
  <p>now when app will go in background, I want this </p>
  
  <pre><code>    - (void) accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration {
  </code></pre>
  
  <p>What can I do, so that this method will get called in app background</p>
  
  <p>Thanks </p>