摘要:
#import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad{ [super viewDidLoad]; [self crea... 阅读全文
摘要:
#import @interface CircleProgressView : UIView/**进度值*/@property(nonatomic,assign) CGFloat progressValue;@end#import "CircleProgressView.h"@implementa... 阅读全文
摘要:
#import typedef NS_ENUM(NSInteger, EcolorDirectionType){ EcolorDirectionUp, //上 EcolorDirectionDown, //下 EcolorDirectionRight, //右 Eco... 阅读全文
摘要:
#import "ViewController.h"@interface ViewController (){ CAGradientLayer *_gradientLayer;}@end@implementation ViewController- (void)viewDidLoad{ ... 阅读全文
摘要:
#import @interface CircleProgressView : UIView/**起始值(0-1)*/@property(nonatomic,assign)CGFloat fstartValue;/**边框宽度*/@property(nonatomic,assign)CGFloat ... 阅读全文
摘要:
/**创建椭圆形的贝塞尔曲线*/ UIBezierPath *_ovalPath=[UIBezierPath bezierPathWithOvalInRect:CGRectMake(0, 0, 200, 100)]; /**创建矩形的贝塞尔曲线*/ UIBezierPath... 阅读全文
摘要:
#import "MyView.h"@interface MyView (){ CGMutablePathRef pathRef;}@end@implementation MyView-(id)initWithCoder:(NSCoder *)aDecoder{ if (self=[su... 阅读全文
摘要:
/**绘制圆形*/ CGContextRef contextRef=UIGraphicsGetCurrentContext(); CGContextAddArc(contextRef, 150, 300, 100, 0, 3.14*2, 0); CGContextStrokePat... 阅读全文
摘要:
/**绘制三角形*/ CGContextRef contextRef=UIGraphicsGetCurrentContext(); CGContextMoveToPoint(contextRef, 100, 100); CGContextAddLineToPoint(contex... 阅读全文
摘要:
1:首先选中项目WaterDropTest.xcodeproj文件后单击鼠标->输入我们要重新命名的工程名,然后会弹出一个对话框,点击rename按钮2、xcode菜单中选-》product-》scheme->managescheme,3、对工程下面的文件夹重命名4、然后再xcode中在来对该文件夹... 阅读全文