-(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);
}
时间: 2024-10-14 05:43:49