2017-06-06 26 views
0

TableViewどのようにiOS TableViewインデックスの色を変更しますか?

右側のリストの色とフォントをカスタマイズするにはどうすればよいですか。

+0

https://stackoverflow.com/questions/8971196/how-to-change-color-of-letters-of-sectionindextitlesfortableviewこれをチェックする – vaibby

+0

https://stackoverflow.com/questions/13274562/customising-the-font- background-color-of-index-section-bar-in-uitableview –

答えて

4

使用UITableView方法sectionIndexColorsectionIndexBackgroundColor

tableView.sectionIndexColor = UIColor.red 
tableView.sectionIndexBackgroundColor = UIColor.clear 
+0

フォントを変更するにはどうすればよいですか? – iMuzahid

+0

これを参照してください。https://stackoverflow.com/a/758798/1825618 – Bilal

+0

Broは、この日を保存しました。 –

1

単にあなたがのUITableView

yourTableviewName.sectionIndexColor = UIColor.yourDesiredColor 
yourTableviewName.sectionIndexColor = UIColor.red // as Example i have used red color 
sectionIndexColorメソッドにアクセスすることができます
関連する問題