IOS开发基础之绘图的样式
// LJView.m
// 33-绘图的样式
// Created by 鲁军 on 2021/2/23.
#import "LJView.h"
@implementation LJView
- (void)drawRect:(CGRect)rect {
// [self testCStyle];
// [self testOCStyleOCcode];
[self testSanjiaoxingOC];
}
-(void)testSanjiaoxingOC{
UIBezierPath *path = [UIBezierPath bezierPath];
[path moveToPoint:CGPointMake(50, 50)];
[path addLineToPoint:CGPointMake(100, 100)];
[path addLineToPoint:CGPointMake(150, 50