oc自定义不定参数函数
-(void)getValueFormConfig:(NSString *)key,...
or
-(void)getValueFormConfig:(NSString *)key,...NS_REQUIRES_NIL_TERMINATION;
-(void)getValueFormConfig:(NSString *)key,...{
NSMutableArray* keys = [NSMutableArray array];
va_list argList;
if(key){
[keys addObject:key];
va_start(argList, key);
id arg;
while ((arg = va_arg(argList, id))) {
[keys addObject:arg];
}
}
va_end(argList);
}