AI代码解释 -(void)drawRect:(CGRect)rect{// Drawing codeNSLog(@"%s",__func__);//1.获取上下文CGContextRef contextRef=UIGraphicsGetCurrentContext();//2.描述路径UIBezierPath*path=[UIBezierPath bezierPath];//起点[path moveToPoint:CGPointMake(10,10)];//终点[path addLineToPoint:CGPointMake(10...
-(void)drawRect:(CGRect)rect{//DrawingcodeNSLog(@"%s",__func__);//1.获取上下文CGContextRefcontextRef=UIGraphicsGetCurrentContext();//2.描述路径UIBezierPath*path=[UIBezierPathbezierPath];//起点[path moveToPoint:CGPointMake(10,10)];//终点[path addLineToPoint:CGPointMake(100,100)];//设置...