You should modify your own data source, because the index label display number is calculated based on the array count of your data source; You give 26 arrays in your original data source, and then fill the data in the corresponding object; In this way, you can use the sectionIndexTitlesForTableView method to return an array of 26 English letters and it will be OK.
This is officially supported.
Can’t we just arrange all 26 letters here?
It can be achieved. Check the UITableView Section Index related content and you should be able to find the answer you want.
You should modify your own data source, because the index label display number is calculated based on the array count of your data source;
You give 26 arrays in your original data source, and then fill the data in the corresponding object;
In this way, you can use the sectionIndexTitlesForTableView method to return an array of 26 English letters and it will be OK.