テーブル ビューにボタン付きのフッター ビューを追加しようとしています。このコードをオンラインで見つけました
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;
}
GetSectionメソッドが何かわかりませんか? 「名前 GetSection は現在のコンテキストに存在しません」というエラーが発生しています。
MonoTouch サイトにも適切なドキュメントが見つかりませんでした。
助けていただければ幸いです。