Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在创建一个拆分视图控制器,似乎我无法更改主视图中按钮的颜色(默认情况下它们是白色的)。我宁愿不创建自己的自定义按钮,所以我想知道是否有办法以编程方式执行此操作?我们试图设置 UIColor 的背景,但它改变了按钮后面的背景颜色。这是它的样子: