What is the UITableView separator color in iOS 7?

孤者浪人 提交于 2020-01-01 04:16:28

问题


What is the color that Apple uses for the separators in a grouped UITableView?

Is there a constant or some way I can access this programmatically?


回答1:


The inspector tool in the Apple's color picker, reports the color as follows:

  • Hex: #c8c7cc
  • RGB (255): 200, 199, 204
  • RGB (1.0): 0.783922, 0.780392, 0.8

You can access this value programmatically by accessing the table view's separatorColor property.

UIColor *separatorColor = self.tableView.separatorColor;
// [separatorColor description] = UIDeviceRGBColorSpace 0.783922 0.780392 0.8 1


来源:https://stackoverflow.com/questions/24685775/what-is-the-uitableview-separator-color-in-ios-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!