美文网首页
Runloop performSelector:withObje

Runloop performSelector:withObje

作者: 景彧 | 来源:发表于2022-08-13 23:51 被阅读0次
image.png
// 本质是将定时器添加到runloop里边,runloop并没有启动,定时器就没法工作,所以代码不会被执行
[self performSelector:@selector(test) withObject:nil afterDelay:1.0];

相关文章

网友评论

      本文标题:Runloop performSelector:withObje

      本文链接:https://www.haomeiwen.com/subject/gjecgrtx.html