取得string長度 [string length];component
取子串: [string substringFromIndex:index]; //從index位取到字符串尾orm
[string substringWithRange:NSMakeRange(location,substringLength)]; //location代表起始位置,substringLength代表取長度字符串
拼接字符串: [NSString stringWithFormat:@"%@%@%@",string1,string2,string3];string
分割字符串it
NSArray *list = [string componentsSeparatedByString:@"/"]; //將字符串用/分割,存入list中。io