Without any hack or complex and possibly slow custom drawRect: this is possible if you group your views:
Create a bounding view that spans and holds the entire dialogue. This view has no visible content, and its backgroundColor is understandable. Its alpha is 1.0.
Now add all the transparent views (those that have alpha <1) to what you want, and also add the opaque views. Be careful not to add any opaque representations as transparent routines, but instead add them as direct representations of a limited representation. Thus, they inherit their alpha 1.0.
UIView *progressDialogView = [[UIView alloc] initWithFrame:dialogFrame]; progressDialogView.backgroundColor = [UIColor clearColor]; progressDialogView.alpha = 1.0;
source share