如何拍摄UIView的屏幕截图?
UIViewUIImage.
UIGraphicsBeginImageContext(CGSizeMake(320,480));CGContextRef context = UIGraphicsGetCurrentContext(); [myUIView.layer drawInContext:context];UIImage *screenShot = UIGraphicsGetImageFromCurrentImageContext();UIGraphicsEndImageContext();
myUIView
哈士奇WWW
慕码人8056858
随时随地看视频慕课网APP