摘要:
//CAShapeLayer是通过给一条曲线来绘制的,我们可以给定不同曲线来制造动画,我们也可以改变下面的曲线来制造动画// self.backgroundLayer.strokeStart=0.0f;// self.backgroundLayer.strokeEnd=1.0f;[self... 阅读全文
摘要:
#pragma mark滑动手势的识别starttypedef enum:NSInteger{ kCameraMoveDirectionNone, kCameraMoveDirectionUp, kCameraMoveDirectionDown, kCameraMoveDir... 阅读全文
摘要:
#include #include typedef struct _hjz{ int year; int month; int day; int reserved;} hjz;unsigned int lunar200y[199] = { 0x04AE53,0x0A57... 阅读全文
摘要:
//奇偶规则裁剪的理解1.如果在裁剪之前,如果覆盖来偶数此,,我们就将这个区域裁剪掉 阅读全文
摘要:
// 这是2个方法的理解:1.drawLayer是一个图层的代理方法。每个UIView都由自己的基层CaLayer,它会自动调用这个drawlayer方法将其事先设置好的各种属性绘制在这个基本的图层上面2.如果复写这个方法,一定要调用[super drawLayer:layer inContext:... 阅读全文
摘要:
CGContextMoveToPoint(ctx, 4.5, (KCaladerViewOfHeadHight-1)+0.5); [[UIColor colorWithRed:61/255.0 green:122/255.0 blue:215/255.0 alpha:1] setStroke... 阅读全文
摘要:
NSDate *date=[NSDate date];//格林尼治时间 NSLog(@"%@",date); NSCalendar *calendar=[NSCalendar currentCalendar];//本地化日历 NSDateComponents *compt1= ... 阅读全文
摘要:
//CGRectInset 将原来的矩形放大或者缩小,正表示缩小,-表示放大。CGRect rect= CGRectMake(20, 50, 100, 80); CGRect rect1=CGRectInset(rect, -10, 20); NSLog(@"%@",p(rect1));//输出结... 阅读全文
摘要:
//添加被塞尔曲线 CGContextMoveToPoint(cgContext, 150, 100); //移动到某一个点 CGContextAddCurveToPoint(cgContext, 150, 100, 100, 100, 100, 150);//绘制被... 阅读全文
摘要:
ASIHTTPRequest (作者:BenCopsey) 是一个使用简单,可用于各种从简单到复杂的 HTTP 请求,或者可用于处理 Amazon S3、Rackspace 等REST 服务的强大框架。不幸的是,Ben 早在 2011 年 9 月 21 日就已经声明停止开发和支持该框架(见http:... 阅读全文