ios - Indexed TableViews not displaying after upgrade to MT 4.0 -
after upgrading mt 4.0, tableviews displaying indexes on right hand border no longer working. tableview still displays in sections , works properly, index not displaying.
i have these 3 methods defined in uitableviewsource, , 3 appear working:
public override string[] sectionindextitles(uitableview tableview) public override int sectionfor(uitableview tableview, string title, int atindex) public override string titleforheader(uitableview tableview, int section) is else having problem? bug mt 4.0?
this known bug.
it appears uitableview not retaining returned array, can use following work around issue while investigate further:
nsarray array; [export ("sectionindextitlesfortableview:")] public nsarray sectiontitles (uitableview tableview) { if (array == null) { string[] titles = new string[rowsinsection(tableview, 0)]; (int index = 0; index < titles.length; index++) titles[index] = index.tostring(); array = nsarray.fromstrings (titles); } return array; }
Comments
Post a Comment