/**排除因为%@出现的(null)*/
+ (instancetype)blt_stringWithFormat:(NSString*)format, ...{
va_listap;
va_start(ap, format);
NSString* string = [[self alloc] initWithFormat:format arguments:ap];
va_end(ap);
if(string.length) {
string = [stringstringByReplacingOccurrencesOfString:@"(null)" withString:@""];
string = [stringstringByReplacingOccurrencesOfString:@"<null>" withString:@""];
}
returnstring;
}
网友评论