Sunday, June 3, 2012

iOS: Running Some Code on Main UI Thread

dispatch_async(dispatch_get_main_queue(), ^{
  // do something here
});

Reference: http://stackoverflow.com/questions/5606145/objective-c-calling-a-method-on-the-main-thread

No comments:

Post a Comment