Thursday, 17 May 2012

thread using blocks and change in UI

double delayInSeconds = 0.2;
    dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC);
    dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
       // call here your code and also change in UI
    });

No comments:

Post a Comment