当调用 CGBitmapContextCreate 方法时,应用程序崩溃并给出 EXC_BAD_ACCESS。
这只发生在 iPhone 6+ 中(在设备上运行时)。
CGContextRef context = CGBitmapContextCreate(baseAddress, width, height, 8, bytesPerRow, colorSpace, kCGBitmapByteOrder32Little | kCGImageAlphaPremultipliedFirst);
是的,我尝试将 NSZombieEnabled 设置为 YES 作为环境变量。但在 EXC_BAD_ACCESS 上调试器控制台上仍然没有显示任何内容。