¡@

Home 

2014/10/15 ¤U¤È 10:10:13

iphone Programming Glossary: imgdrawing.image

Lag while drawing in ios7

http://stackoverflow.com/questions/19108185/lag-while-drawing-in-ios7

standardUserDefaults floatForKey @ strokeValue UIGraphicsBeginImageContext self.viewDrawing.frame.size imgDrawing.image drawInRect CGRectMake 0 0 self.viewDrawing.frame.size.width self.viewDrawing.frame.size.height CGContextSetLineCap UIGraphicsGetCurrentContext.. UIGraphicsGetCurrentContext currentPoint.x currentPoint.y CGContextStrokePath UIGraphicsGetCurrentContext imgDrawing.image UIGraphicsGetImageFromCurrentImageContext UIGraphicsEndImageContext else float strokeT NSUserDefaults standardUserDefaults.. floatForKey @ strokeValue NSLog @ strokeT f strokeT UIGraphicsBeginImageContext self.viewDrawing.frame.size imgDrawing.image drawInRect CGRectMake 0 0 self.viewDrawing.frame.size.width self.viewDrawing.frame.size.height NSLog @ STROKE f stroke..