IOS開發架構:關於Core Plot SDK用法

來源:互聯網
上載者:User

IOS開發架構Core Plot SDK的用法是本文要介紹的內容,通過前一篇博文 Core Plot開源架構使用的學習,我們已經瞭解Core Plot架構,具體瞭解來看本文詳細內容詳解。

如果使用了Core Plot標準Mac安裝包進行安裝,使用起來有一些變化。其實,如果你注意到安裝器的最後一個介面,這裡已經有一個如何使用的介紹了:

To add the Core Plot SDKs to an iOS Project:

1、Add to your project's .PCH file:

 
  1. #import <CorePlot/CorePlot.h> 

2、Open Project -> Edit Project Settings and for All Configurations :

1) Add to Additional SDKS :

 
  1. (System)  
  2. /Library/SDKs/CorePlotSDK/${PLATFORM_NAME}.sdk  
  3. (User)  
  4. ${HOME}/Library/SDKs/CorePlotSDK/${PLATFORM_NAME}.sdk 

2) Add to Other Linker Flags :

 
  1. -ObjC -all_load -lCorePlot 

3、Add the QuartzCore framework to the project.

4、Add a CPGraph to your application.

但即使你step by step,也未必能編譯通過一個Core Plot應用項目。

這是因為項目Build Info中,C/C++ Compiler Version必須使用LLVM GCC 4.2,而不能使用GCC 4.2。

另外,如果你在源檔案中 #import "CorePlot-CocoaTouch.h" ,將導致一個錯誤。

因為SDK的標頭檔是CorePlot.h,而不是CorePlot-CocoaTouch.h。但我們已經在.PCH檔案中import過CorePlot.h了,並不需要在源檔案中顯示地import。

小結:IOS開發架構:關於Core Plot SDK用法的內容介紹完了,希望通過本文的學習能對你有所協助!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.