I am loading a xib file from my viewcontroller which has a table view.
[[NSBundle mainBundle] loadNibNamed:@"NewView" owner:self options:nil])
[self.newView setFrame:CGRectMake(0, 0, 320, 480)];
[[UIApplication sharedApplication].keyWindow addSubview:self.newView];
The view is correctly loaded.
On a button click in the newView I want to remove this view.
[self.newView removeFromSuperview];
The newView is removed. But the tableview behind it doesn’t show anything. It just shows a transparent background. Cant find a way to sort it. Help needed
This code worked.
And I removed the view by