Swift Tutorial: Timers (scheduledTimer, repeating timer,

Опубликовано: 05 Май 2021
на канале: Swift Goose
3,063
58

In this Swift tutorial we’ll look at how to use Timers to repeatedly run functions and/or blocks of code after a certain time interval has passed. We will use #selector for @objc methods for our first timer, and blocks of code for our second timer.

Hit the like button, comment, subscribe, and hit the dinner bell to be notified of my next video!

00:00 Intro
00:20 Layout
00:32 #selector scheduled Timer
01:37 @objc func for Timer
02:54 block scheduled Timer
04:08 invalidate() Timer
04:47 End

Subscribe for more content, as I will be creating more tutorial and how-to videos for coding in Swift, as well as longer tutorials on building macOS apps.

If you'd like to support my work to help me improve video quality and bring more content, please consider donating to my PayPal:
https://www.paypal.com/paypalme/Swift...

Thank you for watching!

Huge thank you to the channels below for helping me get started!
Uncreated Light Press
   / @uncreatedlightpress  
and

Mr. Macintosh
   / @mr.macintosh  
and

The Apple Ninja
   / jessetheappleninja  


На этой странице сайта вы можете посмотреть видео онлайн Swift Tutorial: Timers (scheduledTimer, repeating timer, длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Swift Goose 05 Май 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 3,063 раз и оно понравилось 58 зрителям. Приятного просмотра!