我有一个现有的项目,用objective编写,来自ios8和核心图1.5.1静态库。我正在使用Xcode 8.0 beta 6 (8S201h)编译iOS8.2-> for 10。
当我编译项目时,我会收到以下警告。(该应用程序在运行时可以创建我的条形图。)
警告:从不兼容类型'myViewController * const_strong‘分配给myViewController*const_strong
在我的条形图视图控制器中,我有以下内容:
在.h中:
@interface myViewController : UIViewController <CPTBarPlotDataSource, CPTBarPlotDelegate, UIActionSheetDelegate>在.m中:
CPTBarPlot *barPlot = [[CPTBarPlot alloc] init];
barPlot.dataSource = self;
barPlot.delegate = self; // [Warning: occurs on this line]如果你对此有任何建议,我们将不胜感激。
发布于 2016-09-10 11:02:57
分支release-2.2包含解决此类问题的修复程序。它还没有正式发布,但是您可以尝试查看已经做了哪些更改。链接
https://stackoverflow.com/questions/39420905
复制相似问题