{"id":15037877,"url":"https://github.com/queeniecplusplus/ios_back_8","last_synced_at":"2026-04-02T02:06:43.358Z","repository":{"id":104588314,"uuid":"333622425","full_name":"QueenieCplusplus/iOS_Back_8","owner":"QueenieCplusplus","description":"Multi-Threads using Timer","archived":false,"fork":false,"pushed_at":"2021-01-28T03:24:32.000Z","size":1199,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T13:13:46.346Z","etag":null,"topics":["ios11","ios14","multithreading","scheduler","swift4","swift5","timer","xcode11","xcode12"],"latest_commit_sha":null,"homepage":"https://github.com/QueenieCplusplus/QuickGoThru/blob/master/README.md#apple-ios-swift-溫故愛鳳---計畫復甦","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QueenieCplusplus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-28T02:28:29.000Z","updated_at":"2021-01-28T03:24:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"4f06cb28-92b7-4625-a79a-364be7878110","html_url":"https://github.com/QueenieCplusplus/iOS_Back_8","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FiOS_Back_8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FiOS_Back_8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FiOS_Back_8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FiOS_Back_8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QueenieCplusplus","download_url":"https://codeload.github.com/QueenieCplusplus/iOS_Back_8/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243410445,"owners_count":20286395,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios11","ios14","multithreading","scheduler","swift4","swift5","timer","xcode11","xcode12"],"created_at":"2024-09-24T20:36:10.845Z","updated_at":"2025-12-29T07:58:29.922Z","avatar_url":"https://github.com/QueenieCplusplus.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iOS_Back_8\nMulti-Threads using Timer\n\n1. code \n\n        //\n        //  ViewController.swift\n        //  KatesThreadsApp\n        //\n        //  Created by KatesAndroid on 2021/1/28 AM 10:15\n        //  multi-threads using Timer class\n\n        import UIKit\n\n        class ViewController: UIViewController {\n\n            override func viewDidLoad() {\n                super.viewDidLoad()\n\n                //Timer.scheduledTimer(timeInterval: \u003c#T##TimeInterval#\u003e, invocation: \u003c#T##NSInvocation#\u003e, repeats: \u003c#T##Bool#\u003e)\n\n                Timer.scheduledTimer(withTimeInterval: 5.0, repeats: true){\n\n                    (t) in\n                    self.timeCounter()\n\n                }\n\n            }\n\n            func timeCounter(){\n                let showTime = DateFormatter()\n                showTime.dateFormat = \"hh:mm:ss\"\n                let timeString = showTime.string(from: Date())\n                print(timeString)\n            }\n\n        }\n\n2. output\n\n   ![](https://raw.githubusercontent.com/QueenieCplusplus/iOS_Back_8/main/Timer.scheduleTimer.png)\n   \n\n3. iOS' tip (log)\n\n        NSLog(\"\")\n        \n        sleep()\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueeniecplusplus%2Fios_back_8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqueeniecplusplus%2Fios_back_8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueeniecplusplus%2Fios_back_8/lists"}