在iOS 7中的UITableView分隔符颜色是什么? [英] What is the UITableView separator color in iOS 7?

查看:257
本文介绍了在iOS 7中的UITableView分隔符颜色是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apple在分组的UITableView中用于分隔符的颜色是什么?



是否有常量或某种方式可以以编程方式访问?



>




  • 十六进制:#c8c7cc

  • RGB(255): 200,199,204

  • RGB(1.0): 0.783922,0.780392,0.8



  • 您可以通过访问表视图的separatorColor 属性。

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


    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?

    解决方案

    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
    

    这篇关于在iOS 7中的UITableView分隔符颜色是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆