在UITabbarController的以下方法中写上两行代码即可
- (void)viewDidLoad {
[super viewDidLoad];
[[UITabBar appearance] setShadowImage:[UIImage new]];
[[UITabBar appearance] setBackgroundImage:[[UIImage alloc]init]];
}
在UITabbarController的以下方法中写上两行代码即可
- (void)viewDidLoad {
[super viewDidLoad];
[[UITabBar appearance] setShadowImage:[UIImage new]];
[[UITabBar appearance] setBackgroundImage:[[UIImage alloc]init]];
}