CorePlot的安装

来源:互联网 发布:webshell查杀工具 编辑:程序博客网 时间:2024/06/06 09:32

今天第一次安装CorePlot遇到了些问题   不过刚解决了


1、在所需要Core Plot的视图/控制器中添加

#import "CorePlot-CocoaTouch.h" 头文件

2、禁止其ARC -fno-objc-arc

3、生成Prefix.pch文件  以下是内容

#import <Availability.h>


#ifndef __IPHONE_3_0

#warning "This project uses features only available in iOS SDK 3.0 and later."

#endif


#ifdef __OBJC__

#import <UIKit/UIKit.h>

#import <Foundation/Foundation.h>

#endif

此处别忘记 在Build setting中的Prefix Header中添加  项目名/项目名-Predix.pch

4、在Bulid setting中  把Enable Strict Checking。。。  设置成no

5、在Bulid setting的 other Linker Flags  中添加-all_load -ObjC

我今天就是这样解决的

0 0