Bug 27391 - UITableView's Section Index Titles missing when using a plain UITableView
Summary: UITableView's Section Index Titles missing when using a plain UITableView
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 8.6.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-02-25 03:29 UTC by asp_net
Modified: 2015-03-07 11:20 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
This is the test case used by Paola to try to reproduce the issue. (4.95 KB, application/x-gzip)
2015-03-06 04:53 UTC, Paola Villarreal
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Description asp_net 2015-02-25 03:29:33 UTC
When using a UITableViewController and providing the section index titles within the data source (string[] SectionIndexTitles(UITableView tableView)), everything works as expected – the index on the right side appears correctly.

When using the exact same setup but with a custom UITableView, which is then added to a UIViewController, the SectionIndexTitles method in the data source object is still being called, but the index won't appear anymore.

A workaround is to create a whole new UITableViewController and using it's TableView object as one would do with the table view itself, but I think in the latter case the index should be appearing, too.

(I can't deliver a failing test right now, but it's easy to reproduce.)
Comment 1 Paola Villarreal 2015-03-06 04:53:07 UTC
Hi! 

I could not reproduce the behaviour you stated here:  "When using the exact same setup but with a custom UITableView, which is then
added to a UIViewController, the SectionIndexTitles method in the data source
object is still being called, but the index won't appear anymore." 

As I am also using a custom UITableView and a datasource and still see the index.

I provided the relevant test case. 

Please let me know if i missed some key information or something.

Thanks!
Comment 2 Paola Villarreal 2015-03-06 04:53:58 UTC
Created attachment 10182 [details]
This is the test case used by Paola to try to reproduce the issue.
Comment 3 asp_net 2015-03-06 06:15:48 UTC
Thanks Paola for creating the test case. I took a look but can't reproduce it neither. I also tried to reproduce it in my production code, here it still fails like described. But maybe it's something related to MvvmCross, as I am using a MvxSimpleTableViewSource here. No idea how we could move forward here, so it's okay to consider it done.

Thomas
Comment 4 Paola Villarreal 2015-03-07 11:20:14 UTC
I will close it but feel free to reopen it if you find a way (for us) to reproduce it :)