//以“#“作为分隔符 NSString *string = @"ni#hao#ma#?"; NSArray *array = [string componentsSeparatedByString:@"#"];