Skip to content

Commit

Permalink
移除测试代码
Browse files Browse the repository at this point in the history
  • Loading branch information
lixiang1994 committed May 16, 2020
1 parent 7646244 commit ec9a566
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions LEEThemeDemo/LEEThemeDemo/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(

self.window = [[MainWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

self.window.backgroundColor = [UIColor whiteColor];

[self.window makeKeyAndVisible];

self.window.rootViewController = [[TabBarController alloc] init];
Expand Down
2 changes: 1 addition & 1 deletion LEEThemeDemo/LEEThemeDemo/MainWindow.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ - (instancetype)initWithFrame:(CGRect)frame

- (void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection {
[super traitCollectionDidChange:previousTraitCollection];
NSLog(@"%ld", (long)self.traitCollection.userInterfaceStyle);

// 根据系统样式变化 重新启用相应的主题 以达到同步的效果
if (@available(iOS 13.0, *)) {
switch (self.traitCollection.userInterfaceStyle) {
Expand Down

0 comments on commit ec9a566

Please sign in to comment.