這是我的代碼:Objective-C的iOS應用程式 - 圖形符號未找到
- (double)performOperation:(NSString *)operation {
if([operation isEqual:@"sqrt"])
operand = srqt(operand);
return operand;
}
這是防止我的應用程序運行
Undefined symbols:
"_srqt", referenced from:
-[CalculatorBrain performOperation:] in CalculatorBrain.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Heeeelp錯誤! :d
OMG,它值得一個#FAIL – 2011-03-29 15:14:49
當你做字符串比較時,使用isEqualToString:而不是isEqual。 – Konrad77 2011-03-29 15:20:59