2011-12-27 64 views
0

我正在嘗試將OpenFeint 2.12.5集成到我的應用程序中。我已閱讀this tutorialthis one ..我在文檔中閱讀Getting Started頁面,並按照其指示進行操作。OpenFeint與iOS應用程序集成

我使用的是xcode 4.2 whit的iOS 5.0和2.12.5的OF框架版本;試圖清理,重建,重建整個事情,沒有任何工作。我得到幾個錯誤,如:

Use of undeclared identifier 'OFLog' 

error: use of undeclared identifier 'OFDelegate' 

'OpenFeint/OpenFeint.h' file not found 

,並警告對[OpenFeint applicationWillResignActive]; 像:

Class method '+applicationWillResignActive' not found (return type defaults to 'id') 

誰能幫我或指示一個教程或東西?

由於幾個月前

回答

1

OpenFeint的顯著改變了 - 看起來這些教程引用的是舊版本。例如,不再有[OpenFeint applicationWillResignActive]。在過去,您通過將所有的源代碼拖放到項目中來集成OF,但現在首選的方法是通過包含OF框架。

我建議開始整合並僅使用官方OpenFeint文檔作爲參考。

+0

謝謝!我曾經說過,我這樣做,惠特沒有運氣.. :( 我試圖包括框架和包括文件。 它不斷給我奇怪的錯誤..謝謝 – Frade

+0

,但'+(void)launchDashboardWithHighscorePage:(NSString *)leaderboardId;'仍然存在,我有一個警告:'類方法'+ launchDashboardWithHighscorePage:找不到(返回類型默認爲'id')' – Frade