I have 2 views:
In the first view I have added another view:
[self.view addSubView:self.secondView];
In Second View when i Press Back then i have remove the second view for back to the first View
[self.view removeFromSuperView];
but in my first view there is the UITableView I have to use [UITableView reloadData]; method of UITableView but I don’t know which method is called when secondView is removed.
My main objective is to call some method when I remove the second view and call any method which will reload the data.
Thanking in advance.
You can use
viewDidAppearfor your first view to call[UITableView reloadData];. It should be called each time that view appears.