Hi,

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.



--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Adding-Footer-View-tp4658194.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to