12 2016 档案

摘要:class func clearCache(finshed : (() -> Void)){ let cachePath = NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.CachesDirectory, NSSearchPath 阅读全文
posted @ 2016-12-20 17:47 madarax 阅读(1927) 评论(0) 推荐(0)
摘要:func screenShot(targetView : UIView) -> UIImage{ UIGraphicsBeginImageContextWithOptions(targetView.bounds.size, false, 0) targetView.drawViewHierarchy 阅读全文
posted @ 2016-12-13 16:42 madarax 阅读(119) 评论(0) 推荐(0)
摘要:/* 设置虚线 */ let borderLabayer = CAShapeLayer() borderLabayer.bounds = CGRect(x: 0, y: 0, width: addField.width(), height: addField.height()) borderLaba 阅读全文
posted @ 2016-12-13 16:16 madarax 阅读(878) 评论(0) 推荐(0)