0
-(void) callme {
//statements
here I call another method "callmeagain"
}
但它無法正常工作。還有另一種方法可以做到嗎?
-(void) callme {
//statements
here I call another method "callmeagain"
}
但它無法正常工作。還有另一種方法可以做到嗎?
要調用ObjC方法,使用語法[foo methodName:param andAlso:param2 …]
在你的情況下,嘗試
-(void)callme {
[self callmeagain];
}
另一種方法可能是
[self performSelector:@selector(callmeagain)];
它基本上是同樣的事情,肯尼的建議