【问题标题】:Core Plot: "Invalid context" error when tapping in chart核心情节:在图表中点击时出现“无效上下文”错误
【发布时间】:2013-10-16 07:09:19
【问题描述】:

我正在使用 Core Plot 1.1 和 iOS 7。在 IB 中,我将 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 中的错误吗?我该如何解决这个问题?

谢谢!

【问题讨论】:

    标签: ios objective-c ios7 core-plot cgcontext


    【解决方案1】:

    更新到更新版本的 Core Plot。 1.1 版已经快一年了。最近发布了 1.4 版,这个问题很可能在较新的版本中得到修复。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多