[Mono-bugs] [Bug 684281] Section index text is not shown for UITableView

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 6 13:49:04 EDT 2011



Geoff Norton <gnorton at novell.com> changed:

           What    |Removed                     |Added
                 CC|                            |gnorton at novell.com

--- Comment #3 from Geoff Norton <gnorton at novell.com> 2011-04-06 17:49:03 UTC ---
It appears that UITableView is not retaining the returned array, you can use
the following to work around this issue while we investigate it further:

NSArray array;

[Export ("sectionIndexTitlesForTableView:")]
public NSArray SectionTitles (UITableView tableview)
    if (array == null) {
        string[] titles = new string[RowsInSection(tableview, 0)];
        for (int index = 0; index < titles.Length; index++)
            titles[index] = index.ToString();

        array = NSArray.FromStrings (titles);

    return array;

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list