Search code examples
iphoneiosios4

Not to update the subview with superview alpha value


My question is when i added a view as subview to Root view.When i changed the alpha value of root view same is occurring in subview also.Actually i don't need the updating in subview.Is there any solution to do like that.


Solution

  • This will change only the alpha of the root view, not the others

        self.view.backgroundColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.5];