在Xcode 14 & iOS 16中,使用NSData dataWithContentsOfURL从URL下载图像时发出紫色警告
Synchronous URL loading of <URL> should not occur on this application's main thread as it may lead to UI unresponsiveness. Please switch to an asynchronous networking API such as URLSession.
如何解决这一问题?是否有人面对同样的问题并加以解决?