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.
假设我使用了一些代码来更改我的应用程序中包含的appearance属性。是否有任何简单的方法可以将某些特定视图的外观重置为默认的 iOS 样式?UINavigationBarUIBarButtonItems
appearance
UINavigationBar
UIBarButtonItems
我能想到的几个选项。
我认为您最好的选择可能是创建一个自定义对象(扩展原始 NavBar 等),保存其原始外观变量(颜色、字体等)并添加一个由控制器调用的重置选项。