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.
ios uicollectionview
Shujataly
source share