Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  2. {
  3. [application setMinimumBackgroundFetchInterval:UIApplicationBackgroundFetchIntervalMinimum];//default fetch interval is never,
  4.  
  5. return YES;
  6. }
  7.  
  8. Target->Capabilities->backgroundModes->backgroundFetch
  9.  
  10. -(void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
  11.  
  12. + (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)ti
  13. target:(id)aTarget
  14. selector:(SEL)aSelector
  15. userInfo:(id)userInfo
  16. repeats:(BOOL)yesOrNo;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement