我已经实现了把一个UIView直接生成图片。
UIGraphicsBeginImageContext(myView.bounds.size);[myView.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();UIGraphicsEndImageContext();
繁华开满天机
达令说
随时随地看视频慕课网APP
相关分类