根据view生成图片的笔记 发表于 2016-08-15 分类于 iOSDev 12345UIGraphicsBeginImageContext(view.frame.size)let context = UIGraphicsGetCurrentContext()self.view.layer.renderInContext(context!)let image = UIGraphicsGetImageFromCurrentImageContext()UIGraphicsEndImageContext() 欢迎关注我的其它发布渠道 RSS