这是我的代码: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