问题
I'm using XCTest and want to test the navBar of a tableView to see if it is set to a specific colour.
How do I reference the colour of the navBar?
Kind regards
回答1:
For the navigation bar, you likely want navigationBar.barTintColor for the background color.
来源:https://stackoverflow.com/questions/22738090/how-do-i-return-the-uicolor-of-an-object-in-objective-c