UITableView section index spacing on iOS 7

前端 未结 7 1631
再見小時候
再見小時候 2020-12-28 14:55

On iOS 6, my UITableView\'s section index would distribute all of its items evenly across the height of the table view. In iOS 7 all of the items are clumped together in the

7条回答
  •  不思量自难忘°
    2020-12-28 15:25

    One of possible solutions here - is to add empty string just after each adding of real title to your section index title array and returning index divided by 2 at your tableView: sectionForSectionIndexTitle: atIndex: method.

    This trick slightly increase distance between successive titles, but doesn't completely solve this problem.

提交回复
热议问题