Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 469
LinShiwei Avatar asked Dec 04 '22 01:12

LinShiwei


1 Answers

Change the background color of the UISplitViewController

yourSplitViewController.view.backgroundColor = [UIColor redColor];
like image 123
souvickcse Avatar answered Dec 06 '22 13:12

souvickcse