如何拍摄UIView的屏幕截图?
UIView
UIImage
.
UIGraphicsBeginImageContext(CGSizeMake(320,480));CGContextRef context = UIGraphicsGetCurrentContext(); [myUIView.layer drawInContext:context];UIImage *screenShot = UIGraphicsGetImageFromCurrentImageContext();UIGraphicsEndImageContext();
myUIView
慕码人8056858