[self.view addSubview:customView]; 寫文字 復(fù)制代碼代碼如下: - (void)drawRect:(CGRect)rect { //獲得當(dāng)前畫板 CGContextRef ctx = UIGraphicsGetCurrentContext(); //顏色 CGContextSetRGBStrokeColor(ctx, 0.2, 0.2, 0.2, 1.0); //畫線的寬度 ...
www.dbjr.com.cn/article/836...htm 2025-6-8