1.設置右側索引字體顏色
self.tabView.sectionIndexColor = [UIColor blackColor];
2.設置右側索引背景色
self.cityTabView.sectionIndexBackgroundColor =[UIColor blackColor];
//顯示每組標題索引
-(NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView
//返回每個索引的內容
-(NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
//響應點擊索引時的委托方法
-(NSInteger)tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString*)title atIndex:(NSInteger)index