Tuesday, February 12, 2013

blocksで遅延実行

blocksで遅延実行
// 2秒遅延
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 2.0f * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
// code
});

No comments:

Post a Comment