2

Is it possible to set a backgrounds image such that the views drawn below it are desaturated, rather than just darkened or tinted via a normal alpha value.

I do not have the ability to alter the views below, so it must be contained to the UIView or layer.

Thanks!

xceph
  • 1,036
  • 2
  • 13
  • 28

1 Answers1

1

Sure, just overlay the view with a screenshot (How Do I Take a Screen Shot of a UIView?) and desaturate (ios sdk desaturate image). Then you can display other viewcontroller modally with transparent background to see-through your desaturated image (iOS: Modal ViewController with transparent background).

Community
  • 1
  • 1
igraczech
  • 2,408
  • 3
  • 25
  • 30
  • This works in some cases, but what if for example the view behind is animated? – xceph Apr 18 '16 at 13:41
  • I was using GPUImage framework to have transparent/blurred objects placed above playing video. http://stackoverflow.com/questions/13934643/gpuimage-video-with-transparency-over-uiview – igraczech Apr 19 '16 at 13:08