摘要: NSString *tempA = @"123"; NSString *tempB = @"456"; 1,字符串拼接 NSString *newString = [NSString stringWithFormat:@"%@%@",tempA,tempB]; 2,字符转int int intString = [newString intValue]; 3,int转字符 NSStr... 阅读全文
posted @ 2013-01-23 15:29 天纯蓝 阅读(601) 评论(0) 推荐(0) 编辑
摘要: NSBundle *mainBundle=[NSBundle mainBundle]; NSString * txtPath=[mainBundle pathForResource:@"badytype_index" ofType:@"txt"]; NSString *result=[[NSString alloc] initWithContentsOfFile:... 阅读全文
posted @ 2013-01-23 11:33 天纯蓝 阅读(146) 评论(0) 推荐(0) 编辑
摘要: -(NSString *) getHtmlToText:(NSString*) inputString{ NSString *result=[[NSString alloc] init]; result=inputString; NSRegularExpression *reg=[[NSRegularExpression alloc] init]; reg=[[NSRegularExpression alloc] initWithPattern:@"<([^>]+)>" options:NSRegularExpressionCaseInsensitive 阅读全文
posted @ 2013-01-23 11:29 天纯蓝 阅读(357) 评论(0) 推荐(0) 编辑