IOS alphabet scroll for uicollectionview

I had a collection in which multiple images of peoples and their names are shown, I implemented search and sorting functions, but the problem is that I want also in alphabetical order. but it does not have delegation methods like table.

- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView { return[NSArray arrayWithObjects:@"a", @"e", @"i", @"m", @"p", nil]; } - (NSInteger)tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString *)title atIndex:(NSInteger)index { return <yourSectionIndexForTheSectionForSectionIndexTitle >; } 

I tried this question too, but this shows the collection cells in the section. but the problem is that I do not want several sections. I want only a section and implement an alphabetical scroll function, please help me with some help

The above methods are not in collectionviewdelegate methods.

+9
ios uicollectionview
source share
2 answers

BDKCollectionIndexView implements a row with a UITableView index. It's pretty easy to integrate when you put it on the screen: just assign an NSString array from your data source:

 self.indexView.indexTitles = self.fetchResultsController.sectionIndexTitles; 
+1
source share

You can use the following custom class as an extension. example

0
source share

All Articles