how to refresh table's cell when click on a button which is on another view,
actully my table view is on a viewcontroller class and a button is on its subclass? now i want as button clicked which is on its subclass ,so subclass closed and data on super class's table is refreshed , how to do this????????
i create a uiTableView object i.e
this function is in superView which contain a table view :-
this function is in my subView of above view i.e
so when this subView is removed from superview so my viewWillAppear method is not calling not executing and table is not reloaded????? suggest me what to do now????
actully my table view is on a viewcontroller class and a button is on its subclass? now i want as button clicked which is on its subclass ,so subclass closed and data on super class's table is refreshed , how to do this????????
i create a uiTableView object i.e
this function is in superView which contain a table view :-
Code:
-(void) viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
UITableView *tbv1=[[UITableView alloc] init];
[tbv1 reloadData];
}
this function is in my subView of above view i.e
Code:
-(IBAction) btn
{
[self.view removeFromSuperview];
}
so when this subView is removed from superview so my viewWillAppear method is not calling not executing and table is not reloaded????? suggest me what to do now????
Last edited: