我知道這是一個常見的問題,我用Google搜索了很多,似乎沒有得到運氣來解決我的問題。 我有一個@interface TestViewController:的UIViewController 並在其實現文件我定義了一個方法:視圖控制器可能會不響應to'method」問題
-(void)method1 {
do something;
[self method1];//here I need to call the method itself if a statement is true and this line is where the warning TestViewController may not respond to'method1' I got
}
-(void)method2{
[self method1] //But there is no problem with this line
}
誰能幫助我? 在此先感謝!
感謝這樣的明確的解釋! – 4everafk 2010-11-16 19:30:21