I am showing list of items on UITableViewCell in different sections. I have created UITextField in viewForFooterInSection delegate
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
Now my problem is i dont want to show viewForFooterInSection everytime. It should be nil/hidden until i click didSelectRowAtIndexPath for that particular section. And UITextField should show only for that section only.
I am confused how to reload footerView on click ?
You can reload the footer view simply by reloading the section.
After this call,
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)sectionhits again, where you can keep a boolean variable and accordingly return nil or your footer view.HTH,
Akshay