I don’t know, How to set old view in interface to decrease alpha in old view only
not decrease New view
i have this function
-(IBAction)save:(id)sender
{
testView * subTestview = [[testView alloc]initWithNibName:@"TestView" bundle:nil];
subTestview.view.frame = CGRectMake(0, 0, subTestview.view.frame.size.width,
subTestview.view.frame.size.height);
subTestview.view.center = CGPointMake(self.view.frame.size.width/2, self.view.frame.size.height/2);
self.view.alpha = 0.3f;
[self.view addSubview:subTestview.view];
}
when i use “self.view.alpha = 0.3f”, it decrease alpha of all view
Help me please
Thank you
Ton
I think, you should make another parent view. Put your testView on it. Put your subTestview on it also independently(not as a subview of testView, but as a subview of parent view). Try to set alpha of your testView after that.