UIGraphicsBeginImageContextWithOptions 方法崩溃(Crash)
Assertion failure in void _UIGraphicsBeginImageContextWithOptions(CGSize, BOOL, CGFloat, BOOL)(),
如果出现上述错误,是因为在iOS 17之后 UIGraphicsBeginImageContextWithOptions(CGSize size, BOOL opaque, CGFloat scale)
中的 CGSize
宽和高有一个为0 就会crash。因此必须保证传入参数size必须有值。
上一篇:mac终端如何用 vim 修改文
下一篇:Invalid App Stor