2012-10-27 48 views
-4

爲什麼這會在我的.h文件中出現錯誤? 我有一個pageViewControllermainViewController文件我只想調用一次contentViewController而不是任何修改。在.h文件中聲明類

contentViewController *content; //this gives me an error 
+2

我們需要看到代碼能夠幫助 – Mark

+0

我必須得到一個字符串,用戶從textView中更改。這個textView是在這個contentViewController中聲明和使用的,我必須從我的mainViewController獲取字符串! –

+0

請幫幫我! –

回答

1

在.h文件中,上述@interface,你有沒有把@class contentViewController;這可能這裏是一個問題。

相關問題