嗨,我正在尝试做这样的事情:
NSMutableDictionary *param1 = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"inputIntensity", [NSNumber numberWithFloat:0.8], nil];
[param1 setObject:file forKey:kCIInputImageKey];
CIFilter *filter = [CIFilter filterWithName:@"CISepiaTone" keysAndValues:param1];
显然它不起作用,那么,如何从已经存在的字典中填充 keysAndValues 呢?谢谢!