0

Take this Tweetbot 3 screenshot:

enter image description here

How do I present a view and fade out ALL the back views except the one in front to a dark colour?

Doug Smith
  • 29,668
  • 57
  • 204
  • 388
  • 1
    Add a view the size of the screen just behind the your front view, set it's background color to black with an alpha of 50% or so (e.g., `[UIColor colorWithRed:0.f green:0.f blue:0.f alpha:0.5f]`. – bobnoble Nov 04 '13 at 01:35
  • @bobnoble This was such a simple problem if OP just googled. – mattsven Nov 04 '13 at 01:46
  • @mattcurtis The wording was hard to come up with, I Googled many times. – Doug Smith Nov 04 '13 at 02:39

1 Answers1

4

Create a full screen UIView with background color as [UIColor colorWithRed:0.f green:0.f blue:0.f alpha:0.5f]and add your custom view as subView of this new view and then based on your needs you can present this new UIView on top of your current screen which will look faded out except for main centric view.

Abhinav
  • 37,684
  • 43
  • 191
  • 309