//将UIView转成UIImage
-(UIImage
{
//UIGraphicsBeginImageCont
UIGraphicsBeginImageCont
[theView.layer
UIImage
UIGraphicsEndImageContex
return
}
本文介绍了一种将UIView转换为UIImage的方法。通过使用UIGraphicsBeginImageContextWithOptions及UIView的layer渲染到当前上下文中,最终获取到对应的UIImage。
//将UIView转成UIImage
-(UIImage
{
//UIGraphicsBeginImageCont
UIGraphicsBeginImageCont
[theView.layer
UIImage
UIGraphicsEndImageContex
return
}

被折叠的 条评论
为什么被折叠?
