摘要: if #available(iOS 8.0, *){ if let url = URL(string: UIApplication.openSettingsURLString), UIApplication.shared.canOpenURL(url){ ... 阅读全文
posted @ 2018-10-17 11:23 懂事长qingzZ 阅读(245) 评论(0) 推荐(0) 编辑
摘要: ///1. 获得当前窗口 var JY_WINDOW: UIWindow? { get{ if let app = UIApplication.shared.delegate as? AppDelegate { return app.window } return nil } } //2. iPhoneX系... 阅读全文
posted @ 2018-10-17 10:24 懂事长qingzZ 阅读(2173) 评论(0) 推荐(0) 编辑
摘要: 转发链接:https://blog.csdn.net/nathan1987_/article/details/79757368 阅读全文
posted @ 2018-10-17 09:37 懂事长qingzZ 阅读(350) 评论(0) 推荐(0) 编辑