zoukankan      html  css  js  c++  java
  • iOS开发之延时执行

    方法1:

    performSelector(SEL) withObjects:(id) afterDelay:(NSTimeInterval);

    方法2:

    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{

    //需要延时执行的代码

    });

  • 相关阅读:
    9.17 HTML CSS
    9.16
    9.15
    9.14
    9.13
    9.12
    9.11
    9.10
    9.9
    9.8
  • 原文地址:https://www.cnblogs.com/lifengfneg/p/4773846.html
Copyright © 2011-2022 走看看