使用分类 在.m文件@end 之后加入
@implementation NSMutableArray(MyChArr)
- (NSString *)descriptionWithLocale:(id)locale
{
NSMutableString *strM = [NSMutableString string];
[strM appendString:@"(\n"];
for (id obj in self) {
[strM appendFormat:@"\t%@,\n", obj];
}
[strM appendString:@")"];
return strM;
}
@end