【加载应用程序后刷新UIAppearance】壮心未与年俱老,死去犹能作鬼雄。这篇文章主要讲述加载应用程序后刷新UIAppearance相关的知识,希望能为你提供帮助。
This snippet shows you how to reload the UIAppearance of an application after changes made on the proxies. This is required because ios nativaly only load appearance proxies on "
applicationDidFinishLaunching"
.
- NSArray *windows = [ UIApplication sharedApplication] .windows;
- for ( UIWindow *window in windows) {
- for ( UIView *view in window.subviews) {
- [ view removeFromSuperview] ;
- [ window addSubview:view] ;
- }
- }
推荐阅读
- 在Android应用程序中加载现有电子邮件并修改其内容
- HTML中的Favicon和Apple图标
- 深入研究React Native(初学者教程)
- HTTP Live Streaming简介(Android上的HLS等)
- Haxe(跨平台开发的最佳秘密)
- 如何使用Angular 6 SPA进行JWT身份验证
- 探索SharePoint的业务利益
- iOS与Xcode Server的持续集成说明
- ARKit演示(增强现实电影制作)