2017年11月17日

Xcode9学习笔记59 - UIView视图的动画块(翻转动画)

摘要: override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. let rect = CGRect(x: 58, y: 40, width: 200, heig... 阅读全文

posted @ 2017-11-17 07:11 业余极客 阅读(212) 评论(0) 推荐(0) 编辑

Xcode9学习笔记58 - 使用CATransaction Push制作动画(从左往右飘进图片)

摘要: override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. let rect = CGRect(x: 0, y: 0, width: 499, height... 阅读全文

posted @ 2017-11-17 06:43 业余极客 阅读(303) 评论(0) 推荐(0) 编辑

2017年11月16日

JS设置和读取Cookie的函数 - JavaScript|Jquery

摘要: 1 function setCookie(c_name,value,expireSeconds) 2 { 3 var date=new Date(); 4 date.setTime(date.getTime()+expireSeconds*1000); //设置date为当前时间+expireSeconds秒 5 document.cookie=c_name+"="+va... 阅读全文

posted @ 2017-11-16 08:52 业余极客 阅读(347) 评论(0) 推荐(0) 编辑

Xcode9学习笔记57 - 使用CoreImage框架给图片添加马赛克效果 CIPixellate

摘要: import UIKit import CoreImage class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typica... 阅读全文

posted @ 2017-11-16 07:29 业余极客 阅读(335) 评论(0) 推荐(0) 编辑

Xcode9学习笔记56 - 使用CoreImage框架更改图片的色相 CIHueAdjust

摘要: import UIKit import CoreImage class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() let image = UIImage(named: "Pic1") let imageView =... 阅读全文

posted @ 2017-11-16 07:16 业余极客 阅读(513) 评论(0) 推荐(0) 编辑

Xcode9学习笔记55 - 使用CoreImage框架设置图片的单色效果

摘要: import UIKit //导入CoreImage框架,该框架提供了强大和高效的图像处理功能,用来对基于像素的图像进行分析、操作和特效处理 import CoreImage class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() ... 阅读全文

posted @ 2017-11-16 07:09 业余极客 阅读(206) 评论(0) 推荐(0) 编辑

2017年11月15日

Xcode9学习笔记54 - 使用CATransaction Reveal制作动画

摘要: override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. let rect = CGRect(x: 0, y: 0, width: 499, height... 阅读全文

posted @ 2017-11-15 07:35 业余极客 阅读(237) 评论(0) 推荐(0) 编辑

Xcode9学习笔记53 - 遍历系统提供的所有滤镜

摘要: import UIKit import CoreImage class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() //获得系统内置滤镜的名称,并将滤镜名称放置在数组里 let builtInFilters = C... 阅读全文

posted @ 2017-11-15 06:56 业余极客 阅读(178) 评论(0) 推荐(0) 编辑

2017年11月14日

Xcode9学习笔记52 - 使用UIBlurEffect给图片添加模糊效果

摘要: override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. let image = UIImage(named: "Pic1") ... 阅读全文

posted @ 2017-11-14 07:37 业余极客 阅读(797) 评论(0) 推荐(0) 编辑

2017年11月13日

Xcode9学习笔记51 - 将一张普通的图片转换成灰度图片CGColorSpaceCreateDeviceGray

摘要: override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. let image = UIImage(named: "img01")//从... 阅读全文

posted @ 2017-11-13 07:24 业余极客 阅读(1035) 评论(0) 推荐(0) 编辑

导航