I am trying to add a Footer view with button in my table view. I found this code online
public override UIView GetViewForFooter(UITableView tableView, int sectionIndex)
{
// Write a method to get the proper Section via the sectionIndex
var section = GetSection(sectionIndex);
if (section != null)
{
if (section.FooterView == null && !string.IsNullOrEmpty(section.FooterText))
{
// Create your FooterView here
section.FooterView = CreateFooterView(tableView, section.FooterText);
}
return section.FooterView;
}
return null;
}
I dont know what GetSection method is? I am having error "The name GetSection does not exist in the current context" .
I couldn't find any proper documentation on MonoTouch site as well.
Help is appreciated.