摘要:
基本原理就是主要将UIView的layer描绘到图形上下文。UIView全局拍照和局域拍照的代码如下:1 UIView全局拍照- (UIImage *) screenImage:(UIView *)view { UIImage *screenImage; UIGraphicsBeginImageContext(view.frame.size); [view.layer renderInContext:UIGraphicsGetCurrentContext()]; screenImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraph 阅读全文