摘要: #import "MyView.h"@interface MyView (){ CGMutablePathRef pathRef;}@end@implementation MyView-(id)initWithCoder:(NSCoder *)aDecoder{ if (self=[su... 阅读全文
posted @ 2015-03-31 23:00 曹县三胖暴打大猩猩 阅读(151) 评论(0) 推荐(0) 编辑
摘要: /**绘制圆形*/ CGContextRef contextRef=UIGraphicsGetCurrentContext(); CGContextAddArc(contextRef, 150, 300, 100, 0, 3.14*2, 0); CGContextStrokePat... 阅读全文
posted @ 2015-03-31 22:29 曹县三胖暴打大猩猩 阅读(145) 评论(0) 推荐(0) 编辑
摘要: /**绘制三角形*/ CGContextRef contextRef=UIGraphicsGetCurrentContext(); CGContextMoveToPoint(contextRef, 100, 100); CGContextAddLineToPoint(contex... 阅读全文
posted @ 2015-03-31 22:06 曹县三胖暴打大猩猩 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1:首先选中项目WaterDropTest.xcodeproj文件后单击鼠标->输入我们要重新命名的工程名,然后会弹出一个对话框,点击rename按钮2、xcode菜单中选-》product-》scheme->managescheme,3、对工程下面的文件夹重命名4、然后再xcode中在来对该文件夹... 阅读全文
posted @ 2015-03-31 18:13 曹县三胖暴打大猩猩 阅读(358) 评论(0) 推荐(0) 编辑
摘要: -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [UIView transitionWithView:_imageViewFirst duration:1.0f options:UIViewAnimationOp... 阅读全文
posted @ 2015-03-31 10:58 曹县三胖暴打大猩猩 阅读(944) 评论(0) 推荐(0) 编辑
摘要: [UIView beginAnimations:nil context:nil]; [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:_imageViewFirst cache:YES]; ... 阅读全文
posted @ 2015-03-31 10:41 曹县三胖暴打大猩猩 阅读(326) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"@interface ViewController ()@property (strong, nonatomic) IBOutlet UIImageView *imageViewFirst;@property (strong, nonatomic)... 阅读全文
posted @ 2015-03-31 10:33 曹县三胖暴打大猩猩 阅读(1068) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"@interface ViewController ()@property(nonatomic,strong)CALayer *imageLayer;@property(nonatomic,strong)CALayer *maskLayer;@pr... 阅读全文
posted @ 2015-03-31 10:14 曹县三胖暴打大猩猩 阅读(236) 评论(0) 推荐(0) 编辑