My problem is that:
I have a popOver and when it is pop up I want the color of the other views to become gray.
After tapping outside the popover, the popover will dismiss and the color of the other views will change back to normal.
Anyone can help me? Thanks a lot.
Ok, I find out the solution.
I used the UIPopoverControllerDelegate
inside there is a method named:
each time a popover shows up, a UIImageView is added at the top of the background. And by setting its alpha value, the background can be not clear.
each time the popover dismiss by users tapping outside, the method I mentioned above will be called and inside that method just remove the UIImageView we added just now. And it is done!