iOS17版本适配

新版本问题:

1、UIGraphicsBeginImageContextWithOptions函数崩溃

在iOS17.0 beta版本中,如果此函数的第个参数size,传来0,0,会导致毕现崩溃,报错内容如下:

Thread 1"UIGraphicsBeginImageContext() failed to allocate CGBitampContext: size={0, 0}, scale=3.000000, bitmapInfo=0x2002. Use UIGraphicsImageRenderer to avoid this assert."

2、日历中写入事件改动

Accessing Calendar using EventKit and EventKitUI | Apple Developer Documentation

猜你喜欢

转载自blog.csdn.net/ZhaiAlan/article/details/131564174