摘要: 从昨天开始准备从Objective-C Programming:TheBigNerdRanchGuide这本书入手,从头扎实地学习一下OC,顺便提高一下英文阅读能力。今天的知识重点在于类方法和实例方法的区别:NSDate *now = [NSDate date];We say that the da... 阅读全文
posted @ 2015-06-16 17:59 Deric 阅读(273) 评论(0) 推荐(0)
摘要: 前言今天写异型进度条的时候用到了定时器NSTimer,其中定时器的启动是这么写的:1 _timer = [NSTimer scheduledTimerWithTimeInterval:0.12 target:... 阅读全文
posted @ 2015-06-10 16:44 Deric 阅读(1730) 评论(0) 推荐(0)
摘要: 一百多个IOS实例,内容充实而不冗长http://blog.csdn.net/column/details/iosbydeveloperzhang.html 阅读全文
posted @ 2015-06-10 15:51 Deric 阅读(100) 评论(0) 推荐(0)
摘要: 在CAShapeLayer类下用贝塞尔函数绘制自定义形状进度条,然后通过strokeStart与strokeEnd属性控制path的起止点。 阅读全文
posted @ 2015-06-03 17:58 Deric 阅读(292) 评论(0) 推荐(0)
摘要: About GitBookGitBook was created in the middle of 2014 with the vision of creating a modern and simple solution to digital writing and publishing.We a... 阅读全文
posted @ 2015-06-03 09:31 Deric 阅读(564) 评论(0) 推荐(0)
摘要: //根据一个矩形画曲线+ (UIBezierPath*)bezierPathWithRect:(CGRect)rect//根据矩形框的内切圆画曲线+ (UIBezierPath*)bezierPathWithOvalInRect:(CGRect)rect//根据矩形画带圆角的曲线+ (UIBezie... 阅读全文
posted @ 2015-06-01 14:52 Deric 阅读(306) 评论(0) 推荐(0)
摘要: 苹果官方建议两个字母作为前缀的类名是为官方的库和框架准备的,而对于作为第三方开发者的我们,官方建议使用3个或者更多的字母作为前缀去命名我们的类。 一个资深的Mac或iOS开发者可能会记得下面大部分的缩写标识符:PrefixFrameworksABAddressBook / AddressBoo... 阅读全文
posted @ 2015-06-01 13:52 Deric 阅读(520) 评论(0) 推荐(0)