uniqueOrganizationsArray
是[String]
类型。
private let collation = UILocalizedIndexedCollation.currentCollation() as UILocalizedIndexedCollation
private var sections: [[String]] = []
let selector: Selector = ""
sections = [[String]](count: collation.sectionTitles.count, repeatedValue: [])
for object in uniqueOrganizationsArray {
let sectionNumber = collation.sectionForObject(object, collationStringSelector: selector)
sections[sectionNumber].append(object as String)
}
String
我应该在对象上使用什么选择器?