I want to delete the view after clicking the button and load another kind of code that I am trying to explain to you, which is below
[self removeFromSuperview];
FZforgetpassword *forget=[[[NSBundle mainBundle]loadNibNamed:@"FZforgetpassword" owner:self options:nil] objectAtIndex:0];
forget.delegate=self;
forget.frame=self.bounds;
[forget showCustomView:4];
[self addSubview:forget];
first line I delete the view and then load another view, but I don't get the second view when I run this code
source
share