Customising the font/background colour of index/section bar in UITableView

前端 未结 3 1040
轮回少年
轮回少年 2021-01-01 14:29

I\'ve read in another thread on SO that you can adjust the font or background colour of the index bar (that is the A-Z # scrollbar) in a UITableView adding a CALayer. My app

3条回答
  •  时光说笑
    2021-01-01 14:56

    For Swift 3.1:

     self.tblViewForContacts.sectionIndexTrackingBackgroundColor = self.view.backgroundColor
     self.tblViewForContacts.sectionIndexBackgroundColor = self.view.backgroundColor
    

提交回复
热议问题