(IOS)给一个view截图

UIGraphicsBeginImageContextWithOptions(view.bounds.size,YES,0.0); [view.layer renderInContext:UIGraphicsGetCurrentContext()];UIImage*img =UIGraphicsGetImageFromCurrentImageContext();UIGraphicsEndImageContext();

你可能感兴趣的:((IOS)给一个view截图)