https://github.com/YouXianMing
上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 85 下一页
摘要: 手绘彩色光圈http://code4app.com/ios/Quart2D%E6%89%8B%E7%BB%98%E5%BD%A9%E8%89%B2%E5%85%89%E5%9C%88/53b7c132933bf0191b8b4680效果(本人根据上述源码进行了很大的改动):源码:Multicolor... 阅读全文
posted @ 2014-07-13 14:01 YouXianMing 阅读(2221) 评论(1) 推荐(1) 编辑
摘要: 如何处理数组越界而不会让程序崩溃?数组越界是非常常见的现象,有时候,你的程序中,因为数组越界而崩溃了,很难找,理想的状态是,数组越界的时候给我们返回nil就好了.请看下面这个例子://// RootViewController.m// BeyondTheMark//// Copyright (... 阅读全文
posted @ 2014-07-12 05:47 YouXianMing 阅读(5899) 评论(0) 推荐(0) 编辑
摘要: APRoundedButtonhttps://github.com/elpsk/APRoundedButton效果:源码:APRoundedButton.h//// Created by Alberto Pasca on 27/02/14.// Copyright (c) 2014 albert... 阅读全文
posted @ 2014-07-11 20:19 YouXianMing 阅读(585) 评论(1) 推荐(1) 编辑
摘要: POP动画[3]这一节主要讲解POP动画的自定义动画属性.POP动画中有一个参数,叫timingFunction,与CoreAnimation中的一个参数CAMediaTimingFunction基本一样,下图表示的是kCAMediaTimingFunctionEaseInEaseOut的曲线图.下... 阅读全文
posted @ 2014-07-10 19:58 YouXianMing 阅读(613) 评论(0) 推荐(0) 编辑
摘要: RCLightinghttps://github.com/RidgeCorn/RCLighting效果:真机测试的效率:看了源码,其实原理很简单:================================1. 实现UIView的category2. 继承了一个CALayer3. 将这个继承的C... 阅读全文
posted @ 2014-07-09 09:24 YouXianMing 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 使用FBTweakhttps://github.com/facebook/TweaksFBTweak是Facebook的一款开源库,用于微调数据而无需我们重复编译跑真机用的,它支持4种类型的cell_FBTweakTableViewCellModeBoolean,_FBTweakTableViewC... 阅读全文
posted @ 2014-07-08 08:50 YouXianMing 阅读(1825) 评论(0) 推荐(0) 编辑
摘要: 动画隐藏UITabBarController与UINavigationController效果图:源码:AppDelegate.m//// AppDelegate.m// HideTabbar//// Copyright (c) 2014年 Y.X. All rights reserved./... 阅读全文
posted @ 2014-07-07 19:29 YouXianMing 阅读(2434) 评论(1) 推荐(0) 编辑
摘要: CHAnimationhttps://github.com/cyndibaby905/CHAnimationHow it looksCHAnimationis a project used to demonstrate how to write your own animation engine, ... 阅读全文
posted @ 2014-07-06 07:39 YouXianMing 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 使用UISearchDisplayController虽然UISearchDisplayController名字中带有controller,可他不是一个UIView相关的controller,因为,切换显示UISearchDisplayController的时候,它并没有在UIWindow中加载(U... 阅读全文
posted @ 2014-07-05 23:31 YouXianMing 阅读(878) 评论(1) 推荐(0) 编辑
摘要: iOS开发中常用的数学函数 /*---- 常用数学公式 ----*/ //指数运算 3^2 3^3 NSLog(@"结果 %.f", pow(3,2)); //result 9 NSLog(@"结果 %.f", pow(3,3)); ... 阅读全文
posted @ 2014-07-05 17:42 YouXianMing 阅读(559) 评论(0) 推荐(0) 编辑
上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 85 下一页