标签:
//延时加载
func delayLoad(){ let time: NSTimeInterval = 2.0 let delay = dispatch_time(DISPATCH_TIME_NOW, Int64(time * Double(NSEC_PER_SEC))) dispatch_after(delay, dispatch_get_main_queue()) { print("2 秒后输出") } }
标签:
原文地址:http://www.cnblogs.com/brance/p/4976776.html