https://github.com/YouXianMing
上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 85 下一页
摘要: 实现翻页效果简单翻页://// RootViewController.m//// Copyright (c) 2014年 Y.X. All rights reserved.//#import "RootViewController.h"@interface RootViewController ... 阅读全文
posted @ 2014-06-16 18:13 YouXianMing 阅读(946) 评论(0) 推荐(0) 编辑
摘要: 使用AHKActionSheethttps://github.com/fastred/AHKActionSheet基本配置代码: AHKActionSheet *actionSheet = [[AHKActionSheet alloc] initWithTitle:NSLocalizedStr... 阅读全文
posted @ 2014-06-16 09:23 YouXianMing 阅读(595) 评论(1) 推荐(1) 编辑
摘要: GSProgressView本人极不推荐使用drawRect的方式来绘制下载进度条,无论机器的性能怎么高,使用drawRect用于绘制图形都是低效的。A cute little circular progress view for iOS一款轻巧的显示圆形进度的的view,用于iOS开发Instal... 阅读全文
posted @ 2014-06-15 07:09 YouXianMing 阅读(473) 评论(0) 推荐(0) 编辑
摘要: NSRegexTesterThis is a very simple Mac OS X application that allows you to test regular expressions against sample text. It is based on the Mac OS SDK... 阅读全文
posted @ 2014-06-15 06:53 YouXianMing 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 下载时获取文件大小获取文件大小,有时候会出现文件大小为0的情况,一般来说,这是由于我们无法获取文件头中的“Content-Length”造成,通常有两种原因:1.服务器压根就没有设置这个属性(现在的服务器基本上都有)2. 由于将“Accept-Encoding“设置为gzip,就是压缩传输,从而将C... 阅读全文
posted @ 2014-06-14 16:39 YouXianMing 阅读(2272) 评论(0) 推荐(0) 编辑
摘要: 高级mask应用用mask做遮罩可以实现复杂的效果:用来形成遮罩的图片:原始图片:如果你熟悉Photoshop,那这种效果绝对是你的菜,看代码你会秒懂......//// RootViewController.m// ShapeMask//// Copyright (c) 2014年 Y.X.... 阅读全文
posted @ 2014-06-14 14:42 YouXianMing 阅读(1222) 评论(0) 推荐(0) 编辑
摘要: 使用UILabel实现滚动字幕移动效果这个链接中的代码也实现了这种效果https://github.com/cbpowell/MarqueeLabel最终效果如下:原理如下:1. 获取文本2. 计算文本宽度3. 将这个Label放入ScrollView中4. 将ScrollView的contentS... 阅读全文
posted @ 2014-06-14 10:33 YouXianMing 阅读(4350) 评论(1) 推荐(2) 编辑
摘要: 动画绘制水波纹使用drawRect:方式绘制的动画效果,右图为占用了多少CPU.虽然画起来挺好看的,但占用的内存真心吃不消,原因其实很简单哦,drawRect:方法只调用CPU进行图形绘制,所以非常非常的消耗CPU性能,把它集成到应用程序中,我觉得是不靠谱的呢.//// WaterView.h//... 阅读全文
posted @ 2014-06-13 16:54 YouXianMing 阅读(1247) 评论(0) 推荐(1) 编辑
摘要: 能产生粒子效果的CAEmitterLayer下雪效果://// RootViewController.m// Cell//// Copyright (c) 2014年 Y.X. All rights reserved.//#import "RootViewController.h"@inter... 阅读全文
posted @ 2014-06-13 15:10 YouXianMing 阅读(2801) 评论(0) 推荐(0) 编辑
摘要: 使用UITableView实现图片视差效果视差效果如下:原理:根据偏移量计算不同的移动速度,so easy!//// RootTableViewController.h// TableView//// Copyright (c) 2014年 Y.X. All rights reserved./... 阅读全文
posted @ 2014-06-13 09:08 YouXianMing 阅读(879) 评论(0) 推荐(0) 编辑
上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 85 下一页