2010-05-08 22 views
1

我有項目,這包含像頭文件。Three20/TTStyle.h沒有這樣的文件或目錄錯誤

#import "Three20/TTButton.h" 
#import "Three20/TTStyle.h" 
#import "Three20/TTStyleSheet.h" 
#import "Three20/TTView.h" 
#import "Three20/TTShape.h" 

但我沒有收到這樣的文件,目錄錯誤。 但我可以看到那些TTButton.h,TTStyle.h ...在Three20文件夾內。

請幫助我,在此先感謝。

回答

5

按照這些說明文字:

http://three20.info/setup/existing

最重要的:

Finally, we need to tell your project where to find the Three20 headers. Open your "Project Settings" and go to the "Build" tab. Be sure to select the appropriate active configuration (eg, Release vs. Debug -- eventually you'll need to change both). Look for "Header Search Paths" and double-click it. Add the relative path from your project's directory to the "Three20/src" directory. If your project and the Three20 source are in the same parent, you would enter "../Three20/src".

+1

非常感謝你Jasarien,您所提供再解決我的問題, 感謝的鏈接。 – mac 2010-05-08 10:12:32

+0

如果我的回答有幫助,那麼您應該將其標記爲已接受。這同樣適用於您的其他問題。如果您沒有將答案標記爲已接受,您將剝奪社區的聲譽,這意味着他們會提供時間幫助您。 – Jasarien 2010-05-08 13:45:18

+0

> +1,我面臨同樣的問題,我不知道如何給頭部搜索路徑。我保留了項目文件夾,並將下載的文件保存在我的桌面上。我給「../Three20/src」標題搜索路徑,它顯示錯誤是「錯誤:Three20/Three20.h:沒有這樣的文件或目錄」。所以請幫助我。謝謝。 – Pugal 2010-05-14 14:23:16

相關問題