for (Annotation *ann in annotaionArray) // annotationArray contains annotations added to map
{
NSString *fetchedtitle = ann.title;
if([fetchedtitle isEqualToString:oldTitle]); // oldTitle = textfield.text
{
ann.title = appDelegate.pinTitle;
break;
}
}
但比较总是正确的。请问可能是什么错误?
从 sqlite 获取的 const char 被强制转换为stringWithUTF8String
.
一切都已完成以完美地转换为字符串,但仍然为什么比较错误?