title: Changing image hue iOS
body: <p>I want to change hue of an image using slider. what I did is:</p>
  
  <pre><code>float slideValue =  sldHueChange.value;
  beginImage= [CIImage imageWithCGImage:imgBorder.image.CGImage];
  context = [CIContext contextWithOptions:[NSDictionary dictionaryWithObject:[NSNumber numberWithBool:YES] forKey:kCIContextUseSoftwareRenderer]];
  filter= [CIFilter filterWithName:@"CIHueAdjust"];
  [filter setValue:beginImage forKey:kCIInputImageKey];
  [filter setValue:[NSNumber numberWithFloat:slideValue] forKey:@"inputAngle" ];
  CIImage *outputImage = [filter outputImage];
  CGImageRef cgimg =[context createCGImage:outputImage fromRect:[outputImage extent]];
  UIImage *newImg = [UIImage imageWithCGImage:cgimg];
  [imgBorder setImage:newImg];
  CGImageRelease(cgimg);
  </code></pre>
  
  <p>Its working. But it is not smooth. I want a to change hue of image very smoothly. 
  If you have idea to make a smooth hue changer please share it. I really need it. Thanks in advance.</p>