//延时1s执行
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + Double(Int64(1*NSEC_PER_SEC))/Double(NSEC_PER_SEC)) {
//code
}
posted on 2017-03-21 11:06 MJ_Angel 阅读(1900) 评论(0) 编辑 收藏 举报