iphone - what is the maximum value that can be assigned to rununtildate for runloop? -


I'm trying to run this runloop forever (if not always at least for one day) I Runloop [self.runLoop runUntilDate: [NSDate dateWithTimeIntervalSinceNow: 100000]] using the following function;

The problem is that the app crashes after 3 hours.Can someone help me?

If you want to run it continuously (and assuming you have timer and / or input sources attached ), Then you

  [self. Ron Loop Run];   

If you want to be with your current build, you can use it:

  [self.runLoop runUntilDate: [NSDate distantFuture] ];   

I have seen that the applet uses the following pattern (for example listing of 3-14; I have also seen the NSOperation objects when it is a Asynchronous operation which they want to wait to complete):

  // Run the talk run loop process [[[Run NSRON loop] RunMode: NSDFaultRon date before loop mode : [NSDT remote futures]]; } whereas ( ... ); // Wherever you have a condition, you want to check for    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

jsp - Google line chart x-axis shrinks on transition -

java - Reaching JTextField in a DocumentListener -