Background Timer Swift Xcode Tutorial - Stop Watch App

Veröffentlicht am: 14 Oktober 2021
auf dem Kanal: Code With Cal
12,794
146

How to build a start stop timer that continues counting every second even when the app is closed or put into the background using Swift & Xcode.

A great beginner programming project, we are building a stop watch that starts from zero and counts up. You can pause the timer or reset the timer and best of all the time is remembered when the app is closed and reopened.

We are going to use user defaults in order to store the start and stop times. Using these dates we can calculate the time based on the difference in milliseconds between the current time and the saved times.

Background Timer Source Code:
https://github.com/codeWithCal/Backgr...

⏱️TIMESTAMPS
00:00 - Background Timer - Intro
00:34 - Layout - Storyboard
01:30 - Outlets - Assistant Editor
01:56 - UserDefaults
03:32 - Start Stop Timer
07:24 - Reset Timer
07:40 - Update viewDidLoad
08:36 - Testing Project

#Swift #Xcode #ios


Auf dieser Seite können Sie das Online-Video Background Timer Swift Xcode Tutorial - Stop Watch App mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Code With Cal 14 Oktober 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 12,794 Mal angesehen und es wurde von 146 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!