摘要:
手绘彩色光圈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... 阅读全文
摘要:
如何处理数组越界而不会让程序崩溃?数组越界是非常常见的现象,有时候,你的程序中,因为数组越界而崩溃了,很难找,理想的状态是,数组越界的时候给我们返回nil就好了.请看下面这个例子://// RootViewController.m// BeyondTheMark//// Copyright (... 阅读全文
摘要:
APRoundedButtonhttps://github.com/elpsk/APRoundedButton效果:源码:APRoundedButton.h//// Created by Alberto Pasca on 27/02/14.// Copyright (c) 2014 albert... 阅读全文
摘要:
POP动画[3]这一节主要讲解POP动画的自定义动画属性.POP动画中有一个参数,叫timingFunction,与CoreAnimation中的一个参数CAMediaTimingFunction基本一样,下图表示的是kCAMediaTimingFunctionEaseInEaseOut的曲线图.下... 阅读全文
摘要:
RCLightinghttps://github.com/RidgeCorn/RCLighting效果:真机测试的效率:看了源码,其实原理很简单:================================1. 实现UIView的category2. 继承了一个CALayer3. 将这个继承的C... 阅读全文
摘要:
使用FBTweakhttps://github.com/facebook/TweaksFBTweak是Facebook的一款开源库,用于微调数据而无需我们重复编译跑真机用的,它支持4种类型的cell_FBTweakTableViewCellModeBoolean,_FBTweakTableViewC... 阅读全文
摘要:
动画隐藏UITabBarController与UINavigationController效果图:源码:AppDelegate.m//// AppDelegate.m// HideTabbar//// Copyright (c) 2014年 Y.X. All rights reserved./... 阅读全文
摘要:
CHAnimationhttps://github.com/cyndibaby905/CHAnimationHow it looksCHAnimationis a project used to demonstrate how to write your own animation engine, ... 阅读全文