文件名称:ios触摸画图生成五角星
文件大小:59KB
文件格式:ZIP
更新时间:2015-08-28 08:06:47
UITouch UIGraphics
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch * touch=[touches anyObject]; currentPoint =[touch locationInView:self]; UIGraphicsBeginImageContext(self.frame.size); CGContextRef ref=UIGraphicsGetCurrentContext(); [drewImage.image drawInRect:CGRectMake(0, 0, drewImage.frame.size.width, drewImage.frame.size.height)]; CGContextSetLineCap(ref,kCGLineCapSquare); CGContextSetLineJoin(ref, kCGLineJoinRound); 实用触摸事件,利用画图设置画笔颜色,长度,填充 生成五角星,
【文件预览】:
mydrewDemo
----.git()
--------info()
--------objects()
--------HEAD(23B)
--------description(73B)
--------branches()
--------config(111B)
--------index(1KB)
--------refs()
--------COMMIT_EDITMSG(15B)
--------hooks()
--------logs()
----mydrewDemo.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(12KB)
--------xcuserdata()
----SelfPaintDemo.h(375B)
----SelfPaintDemo.m(3KB)
----.DS_Store(6KB)
----mydrewDemo()
--------main.m(341B)
--------ViewController.m(1KB)
--------AppDelegate.h(369B)
--------AppDelegate.m(3KB)
--------mydrewDemo-Prefix.pch(323B)
--------ViewController.h(247B)
--------en.lproj()
--------mydrewDemo-Info.plist(1KB)