class ViewController: UIViewController, UIGestureRecogn
如何判斷 user 是否 idle timeout, 就是在 on touch 裡 reset 掉 time
有參數要傳給 dismiss 的 completion 要怎麼寫? Pretty easy, pass fun
UIAlert 彈 2次會出問題,解法: if presentedViewController == nil
Found a solution here. I’m probably doing it wron
Not quite. In iOS land you have to more explicitly call
You can use the applicationDidBecomeActive(_:) method o
使用 Timer 範例: var backgroundTaskIdentifier: UIBackgr
let date = Date() let calendar = Calendar.current let h