UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:homeVC];
UINavigationBarAppearance *appearance =[UINavigationBarAppearance new];
[appearance configureWithOpaqueBackground];
appearance.backgroundColor = WhiteColor;
nav.navigationBar.standardAppearance = appearance;
nav.navigationBar.scrollEdgeAppearance = nav.navigationBar.standardAppearance;
self.window.rootViewController = nav;
网友评论