摘要:
#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中在来对该文件夹... 阅读全文
摘要:
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [UIView transitionWithView:_imageViewFirst duration:1.0f options:UIViewAnimationOp... 阅读全文
摘要:
[UIView beginAnimations:nil context:nil]; [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:_imageViewFirst cache:YES]; ... 阅读全文
摘要:
#import "ViewController.h"@interface ViewController ()@property (strong, nonatomic) IBOutlet UIImageView *imageViewFirst;@property (strong, nonatomic)... 阅读全文
摘要:
#import "ViewController.h"@interface ViewController ()@property(nonatomic,strong)CALayer *imageLayer;@property(nonatomic,strong)CALayer *maskLayer;@pr... 阅读全文