Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
一个人将如何创建一个 15 秒的倒数计时器..我见过 NSTimer 但想知道它们是否是一种更简单的方法。
谢谢!
并不真地。您可以使用 performSelector:withObject:afterDelay 进行线程阻塞,但这会冻结您的应用程序,除非您创建一个新线程,这比仅使用 NSTimer 更难。
欢迎来到嵌入式开发。