草庐IT

currentCollation

全部标签

swift - 为 A 到 Z UITableView 滚动添加部分索引标题

我正在尝试为联系人表格View添加一些部分标题。我在Array中有一个联系人列表,它可能是这样的:比尔·苹果波拉特史蒂夫测试我添加了以下内容:functableView(tableView:UITableView,titleForHeaderInSectionsection:Int)->String?{letcurrentCollation=UILocalizedIndexedCollation.currentCollation()asUILocalizedIndexedCollationletsectionTitles=currentCollation.sectionTitlesas