我有一个从数据库中检索的图像数组,我想检索图像数组中图像的名称,我试过这个,它不工作,
- (NSString *)convertToDisplayName
{
NSMutableString *displayName = [[name mutableCopy] autorelease];
[displayName replaceOccurrencesOfString:@".png" withString:@""
options:NSLiteralSearch range:NSMakeRange(0, displayName.length)];
[displayName replaceOccurrencesOfString:@"_" withString:@" "
options:NSLiteralSearch range:NSMakeRange(0, displayName.length)];
return displayName;
}
请帮助我。提前谢谢?