core-plot - iPhone 4 iOS5 核心图和 ARC 错误 :"The current deployment target does not support weak references"

标签 core-plot ios5 iphone-4 automatic-ref-counting

我已将我的项目转换为 iOS 5 并启用了 ARC。现在我需要将核心图与项目集成。当我尝试实例化 Core Plot 中包含的示例 Controller 时,我收到大约 20 个错误,如下所示:

The current deployment target does not support automated __weak references



我已经明确说过 fno-objc-arc 在build设置中 Controller 名称旁边。

在启用 ARC 的情况下运行核心绘图还需要什么?

谢谢!

最佳答案

__weak引用仅适用于 iOS 5 及更高版本。如果您有 部署目标 设置为任何更早,然后你会得到错误。基本上,如果您想部署到较早的设备,则不能使用自动化 __weak引用。替代将是 __unsafe_unretained

关于core-plot - iPhone 4 iOS5 核心图和 ARC 错误 :"The current deployment target does not support weak references",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7761901/

相关文章:

iphone - 如何隐藏uiview用户不使用的 View ?

ios5:停止 View 被卸载/停止调用 viewDidUnload

xcode4 - Xcode 4 将应用程序版本嵌入到 iOS 应用程序中

ios - 如何在 iOS6 模拟器中测试使用 iPhone 5 屏幕尺寸创建的应用程序?

iphone - iPhone应用发布后,如何排除iphone4?

swift - 带有 Swift 的 CorePlot - 将轴放在前面

iphone - 为什么我在使用 Core Plot 构建 iPhone 应用程序时会看到以下链接器错误?

ios - 核心剧情: should adding a CPTPlotSpaceAnnotation to plot space cause the entire graph to be redrawn?

ios - 如何自动滚动核心情节(iOS)?

iphone - 如何保存照片并在照片上叠加标签?