我正在跟踪他们提到的这个github项目:这里.In:
Cocoapods
CocoaPods is the recommended way to add PNChart to your project.
Add a pod entry for PNChart to your Podfile pod 'PNChart'
Install the pod(s) by running pod install.
Include PNChart wherever you need it with #import "PNChart.h".我所做的是:
pod 'PNChart', '~> 0.8.7'但是当我从github下载他们的项目时,当我看到他们的podfile文件.its时,代码如下所示:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '6.0'
pod 'UICountingLabel','~> 1.2.0'
target :PNChartTests do
pod 'Expecta'
end但是,当我将这些文件复制到我的podfile和在终端中运行pod install时。我得到了错误no PNChartTest are seen
我首先要做的是处理线状图。请有人指使我去做,谢谢!
更新:
此文件中发生错误:PNRadarChartDataItem.h-此文件将位于PNChart文件夹中。
#import <Foundation/Foundation.h>
@interface PNRadarChartDataItem : NSObject
+ (instancetype)dataItemWithValue:(CGFloat)value
description:(NSString *)description;
@property (nonatomic) CGFloat value;
@property (nonatomic,copy) NSString *textDescription;
@end3错误:
+ (instancetype)dataItemWithValue:(CGFloat)value description:(NSString *)description
错误:预期为类型- (void)setValue:(CGFloat)value {
错误:预期为类型@property (nonatomic) CGFloat value;
错误:未知类型名称cgfloat发布于 2015-12-06 06:30:13
增加了这里的示例项目。
https://stackoverflow.com/questions/34114573
复制相似问题