ios - 在 UIButtons 上全局设置背景颜色
<p><p>全局更改所有 UIButtons 背景颜色的最佳方法是什么?我已经全局设置了色调</p>
<pre><code>[ delegate].window.tintColor =
</code></pre></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><pre><code>[ setBackgroundImage:
forState:UIControlStateNormal];
</code></pre>
<p>或者</p>
<pre><code>[ setBackgroundColor:];
</code></pre>
<p>以下是有关外观代理的更多信息:<a href="http://developer.apple.com/library/ios/documentation/uikit/reference/UIAppearance_Protocol/Reference/Reference.html" rel="noreferrer noopener nofollow">http://developer.apple.com/library/ios/documentation/uikit/reference/UIAppearance_Protocol/Reference/Reference.html</a> </p></p>
<p style="font-size: 20px;">关于ios - 在 UIButtons 上全局设置背景颜色,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/20874279/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/20874279/
</a>
</p>
页:
[1]