因為把 date.timeIntervalSince1970 * 1000 轉成 int 會出錯,所以改用 I
In Swift: if UI_USER_INTERFACE_IDIOM() == UIUserInterfa
遇到使用 AirWatchSDK,拿到舊的版本是用 Swift 3.1 寫的,官方寫要用 xcode 8.3
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