如何在目标c中返回对象的UIColor? [英] How do I return the UIColor of an object in objective c?
本文介绍了如何在目标c中返回对象的UIColor?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用XCTest,并想测试tableView的navBar以查看其是否设置为特定颜色。
I'm using XCTest and want to test the navBar of a tableView to see if it is set to a specific colour.
如何引用navBar的颜色?
How do I reference the colour of the navBar?
亲切的问候
推荐答案
对于导航栏,您可能想要 navigationBar.barTintColor
作为背景色。
For the navigation bar, you likely want navigationBar.barTintColor
for the background color.
这篇关于如何在目标c中返回对象的UIColor?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文