iOS之字符串处理:截取字符串、匹配字符串、分隔字符串
1、字符串的截取//1.截取字符串 NSString *string =@"123456d890";NSString *str1 = [string substringToIndex:5];//截取掉下标5之前的字符串NSLog(@"截取的值为:%@",str1); NSString *str2 = [string substringFromIndex:3];//截取掉下标3之后的字符串NSLog(@"截取的值为:%@",str2