索引值获取子字符串
NSString *myString = @"one two three four five six seven";
NSString *sub1 = [myString substringToIndex:7]; // 从头开始算起
NSLog(@"%@", sub1);
NSString *sub2 = [myString substringFromIndex:4]; // 从指定位置算
NSLog(@"%@", sub2);
2013-05-17 10:08:03.815 base 5-14[433:c07] one two
2013-05-17 10:08:03.816 base 5-14[433:c07] two three four five six seven