这个函数比较坑爹,用一次爆一次,如果一瞬间调用几十次,那么内存会撑到1G多后秒爆。
解决方法:
在调用函数外层添加@autoreleasepool { }
就可以了。
Ps: 具体原因分析看底部参考文章。
这个函数比较坑爹,用一次爆一次,如果一瞬间调用几十次,那么内存会撑到1G多后秒爆。
在调用函数外层添加@autoreleasepool { }
就可以了。
Ps: 具体原因分析看底部参考文章。
本文标题:UIGraphicsGetImageFromCurrentIma
本文链接:https://www.haomeiwen.com/subject/tjbcdctx.html
网友评论