摘要: 1,Swift继续使用Object-C原有的一套线程,包括三种多线程编程技术:(1)Thread(2)Cocoa Operation(Operation和OperationQueue)(3)Grand Central Dispath(GCD)2,本文着重介绍Grand Central Dispath 阅读全文
posted @ 2017-05-18 18:11 漫步彩云间 阅读(5734) 评论(0) 推荐(0) 编辑
摘要: // MARK: - Action // MARK: compose mail 发送邮件 @IBAction func composeMail(sender: AnyObject) { // 判断能否发送邮件 guard MFMailComposeViewController.canSendMail() else { ... 阅读全文
posted @ 2017-05-18 18:01 漫步彩云间 阅读(776) 评论(0) 推荐(0) 编辑
摘要: var phone="10086"; UIApplication.sharedApplication().openURL(NSURL(string :"tel://"+"\(phone)")!) 或者 UIApplication.sharedApplication().openURL(NSURL(s 阅读全文
posted @ 2017-05-18 17:58 漫步彩云间 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 需要闭包的类 在另一个类里调用闭包 阅读全文
posted @ 2017-05-18 17:56 漫步彩云间 阅读(750) 评论(0) 推荐(0) 编辑