IOS-View截图

2015-09-09  本文已影响0人  IOSer_Q

UIGraphicsBeginImageContextWithOptions(inputView.bounds.size, NO, 0);

[inputView.layer renderInContext:UIGraphicsGetCurrentContext()];

UIImage *image = UIGraphicsGetImageFromCurrentImageContext();

UIGraphicsEndImageContext();

上一篇 下一篇

猜你喜欢

热点阅读