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.
有人知道如何在 UINavigationBar 中禁用渐变并使其完全变黑吗?
创建一个继承自 UINavigationBar 并实现自己的drawRect:方法的类。您可能必须自己绘制标题和按钮(在这种情况下,为什么不使用自定义视图?)
drawRect: