Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to have a indexed table view UILocalizedIndexedCollation? #56

Open
umairsuraj opened this issue Aug 3, 2015 · 3 comments
Open

How to have a indexed table view UILocalizedIndexedCollation? #56

umairsuraj opened this issue Aug 3, 2015 · 3 comments

Comments

@umairsuraj
Copy link

Following methods are missings:

  • (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
    return [[UILocalizedIndexedCollation currentCollation] sectionTitles][section];
    }
  • (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView {
    return [[UILocalizedIndexedCollation currentCollation] sectionIndexTitles
    ];
    }
  • (NSInteger)tableView:(UITableView *)tableView
    sectionForSectionIndexTitle:(NSString *)title
    atIndex:(NSInteger)index
    {
    return [[UILocalizedIndexedCollation currentCollation] sectionForSectionIndexTitleAtIndex:index];
    }

And how can we make datasource to have indexing?

@jhersh
Copy link
Member

jhersh commented Aug 3, 2015

@umairsuraj Your simplest option is probably to use a subclass of your SSDataSources object (e.g. @interface MyIndexedDataSource : SSArrayDataSource) and implement any of those extra data source methods you like.

@umairsuraj
Copy link
Author

Yeah thanks. It can be. but is there any possibility that you can add these in your library.

@jhersh
Copy link
Member

jhersh commented Aug 3, 2015

Pull requests are welcome. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants