2019-07-22から1日間の記事一覧
if let url = URL(string: "https://cecilma2018.blogspot.com") { UIApplication.shared.open(url, options: [:]) }
var timer: Timer! timer = Timer.scheduledTimer(withTimeInterval: 0.5, repeats: true, block: { (_) in self.perform() }) func perform() { // some process if XXX { // time to end the Timer timer.invalidate() } }