关于下面代码段的说法错误的是 override func sectionIndexTitles(for tableView: UITableView)
关于下面代码段的说法错误的是 override func sectionIndexTitles(for tableView: UITableView) -> [String]? { var indexTitles=[NSString]() for dic in cars_total { let tmp = dic as! NSDictionary let title = tmp["title"] as! NSString indexTitles.append(title) } return indexTitles as? [String] }
A、上述代码表示给表视图添加索引列
B、索引列代理方法返回值为字符串数组
C、for..in循环表示遍历数组中的每个元素
D、类型后面的问号"?"表示该值不能为空值