直接上代码
/*OC代码*/[[UINavigationBar appearance] setBackgroundImage:[[UIImage alloc] init] forBarPosition:UIBarPositionAny barMetrics:UIBarMetricsDefault];[[UINavigationBar appearance] setShadowImage:[[UIImage alloc] init]];/*swift代码*/UINavigationBar.appearance().setBackgroundImage(UIImage(), for: .any, barMetrics: .default)UINavigationBar.appearance().shadowImage = UIImage()新闻热点
疑难解答