我的if子句总是运行到else语句中?有什么错?If-Statement for String/Int
NSLog([[category objectForKey:@"id"] stringValue]); // Traces 15
if ([[category objectForKey:@"id"] stringValue] == "15") {
result.isExternal = YES;
} else {
result.isExternal = NO;
}
感谢帮助
什么是您的字典所持有的对象的类型? – 2010-02-13 21:16:35