NSString *str=@"12345678"; NSString *str1=[str substringFromIndex:2]; //结果345678 NSString *str2=[str substringToIndex:2]; //结果12
字符串截取问题
原文:http://www.cnblogs.com/haijieFeng/p/4736263.html