Gray look in iphone, how?

I wonder what way the gray part of the view is similar to how the UIAlertView selects everything except the message box? Right now I'm using a different custom view over the target area, but it doesn’t look so good.

Any ideas?

+5
source share
1 answer

I get good results using the method you have already tried. maybe messing with alpha is a good idea?

mask = [[UIView alloc] initWithFrame:window.frame];
[mask setBackgroundColor:[UIColor colorWithWhite:0.0 alpha:0.78]];
[self.view addSubview:mask];

Then in your code you can remove it:

[mask removeFromSuperview];
or
[mask setHidden:YES];

, , , , , , , , , .

+8

All Articles