摘要:
NSString *tempA = @"123"; NSString *tempB = @"456"; 1,字符串拼接 NSString *newString = [NSString stringWithFormat:@"%@%@",tempA,tempB]; 2,字符转int int intString = [newString intValue]; 3,int转字符 NSStr... 阅读全文
摘要:
NSBundle *mainBundle=[NSBundle mainBundle]; NSString * txtPath=[mainBundle pathForResource:@"badytype_index" ofType:@"txt"]; NSString *result=[[NSString alloc] initWithContentsOfFile:... 阅读全文
摘要:
-(NSString *) getHtmlToText:(NSString*) inputString{ NSString *result=[[NSString alloc] init]; result=inputString; NSRegularExpression *reg=[[NSRegularExpression alloc] init]; reg=[[NSRegularExpression alloc] initWithPattern:@"<([^>]+)>" options:NSRegularExpressionCaseInsensitive 阅读全文