iOS 畫圖(矩形、圓、橢圓、弧度、扇形。。。)

矩形 //cornerRadius:圓角半徑(繪製矩形的左上角開始,也就是0,5) UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(10, 10, 50, 50) cornerRadius:5]; [path stroke]; 圓 //cornerRadius:圓角半徑,若是圓角半徑等於正方形長或寬的一
相關文章
相關標籤/搜索