使用YYText,1.0.7在iOS17会遇到如下崩溃主要原因是UIGraphicsBeginImageContext中的asert引发,而改接口早就标记为API_TO_BE_DEPRECATED,建议使用UIGraphicsImageRenderer替换。由于YYText早已没有维护,于是fork了一个自己的git进行修正,主要修正逻辑在textAsynLayer替换为UIGraphicsImageRenderer*renderer=[[UIGraphicsImageRendereralloc]initWithSize:size];UIImage*image=[rendererimageWi
YYText,发现在iOS17上运行会崩溃,触发了系统的断言:UIGraphicsBeginImageContext()failedtoallocateCGBitampContext:size={382,0},scale=3.000000,bitmapInfo=0x2002.UseUIGraphicsImageRenderertoavoidthisassert.查了下api,发现UIGraphicsBeginImageContext在iOS17上已经deprecated了。处理办法:YYTextAsyncLayer.m将UIGraphicsBeginImageContextWithOption