To run the example project, clone the repo, and run pod install
from the Example directory first.
绘制图片
- (void)drawImage:(CGRect)rect image:(UIImage *)image;
绘制文字
- (void)drawText:(CGPoint)point text:(NSString *)text fontSize:(NSDictionary *)fontStyle
绘制带边框线的矩形
- (void)drawRectangle:(CGRect)rect lineWidth:(CGFloat)lineWidth color:(UIColor *)color
绘制矩形
- (void)drawRectangle:(CGRect)rect
绘制圆角矩形
- (void)drawRectangle:(CGRect)rect withRadius:(float)radius;
绘制画多边形
- (void)drawPolygon:(NSArray *)pointArray
绘制圆形
- (void)drawCircleWithCenter:(CGPoint)center radius:(float)radius
绘制曲线
- (void)drawCurveFrom:(CGPoint)startPoint
to:(CGPoint)endPoint
controlPoint1:(CGPoint)controlPoint1
controlPoint2:(CGPoint)controlPoint2;
绘制弧线
- (void)drawArcFromCenter:(CGPoint)center
radius:(float)radius
startAngle:(float)startAngle
endAngle:(float)endAngle
clockwise:(BOOL)clockwise;
绘制扇形
- (void)drawSectorFromCenter:(CGPoint)center
radius:(float)radius
startAngle:(float)startAngle
endAngle:(float)endAngle
clockwise:(BOOL)clockwise
绘制直线
- (void)drawLineFrom:(CGPoint)startPoint to:(CGPoint)endPoint
绘制折线 ,连续直线
- (void)drawLines:(NSArray *)pointArray;
UIView-ZQuartz is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "UIView-ZQuartz"
renxin, [email protected]
UIView-ZQuartz is available under the MIT license. See the LICENSE file for more info.