摘要:
动画绘制水波纹使用drawRect:方式绘制的动画效果,右图为占用了多少CPU.虽然画起来挺好看的,但占用的内存真心吃不消,原因其实很简单哦,drawRect:方法只调用CPU进行图形绘制,所以非常非常的消耗CPU性能,把它集成到应用程序中,我觉得是不靠谱的呢.//// WaterView.h//... 阅读全文
摘要:
能产生粒子效果的CAEmitterLayer下雪效果://// RootViewController.m// Cell//// Copyright (c) 2014年 Y.X. All rights reserved.//#import "RootViewController.h"@inter... 阅读全文
摘要:
使用UITableView实现图片视差效果视差效果如下:原理:根据偏移量计算不同的移动速度,so easy!//// RootTableViewController.h// TableView//// Copyright (c) 2014年 Y.X. All rights reserved./... 阅读全文