iOS:How to change color of the separator in UISplitViewController?

霸气de小男生 提交于 2020-05-15 06:28:04

问题


I have a small project with a UISplitViewController. The masterView is a tableView and the detailView is a collectionView. The background colors of them are both black color. But when the project runs in simulator, there is a separator between tableView and collectionView, which has a white color. I want to change the separator's color but I can't find anything helpful in the UISplitViewController Class reference.

Does someone know how to change the separator's color?


回答1:


Change the background color of the UISplitViewController

yourSplitViewController.view.backgroundColor = [UIColor redColor];


来源:https://stackoverflow.com/questions/35685411/ioshow-to-change-color-of-the-separator-in-uisplitviewcontroller

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