我正在使用 Core Plot 1.1 和 iOS 7。在 IB 中,我已将图形托管 View 的User Interaction Enabled
设置为 YES
。
运行应用程序并点击图表上的某处时,我在控制台中收到以下警告:
<Error>: CGContextConvertPointToDeviceSpace: invalid context 0x0.
This is a serious error. This application, or a library it uses,
is using an invalid context and is thereby contributing to an
overall degradation of system stability and reliability.
This notice is a courtesy: please fix this problem.
It will become a fatal error in an upcoming update.
甚至在调用 barWasSelectedAtRecordIndex
之前我就收到此警告。
我没有更改 iOS 7 的代码,该代码在以前的版本中运行良好。
这是 Core Plot 中的错误吗?我该如何解决这个问题?
谢谢!
最佳答案
更新到较新版本的 Core Plot。 1.1 版已经快一年了。最近发布了 1.4 版,这个问题很可能在较新的版本中得到了修复。
关于ios - 核心剧情: "Invalid context" error when tapping in chart,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19397210/