在創(chuàng)建tabBar的過程中,在設置中間的按鈕的時候,發(fā)現(xiàn)有一條黑色的分割線,而且能分明的看到,感覺整個人都不好了,結(jié)果查了半天兩行代碼就搞定了。
self.tabBar.backgroundImage = [[UIImage alloc]init];
self.tabBar.shadowImage = [[UIImage alloc]init];
或者
[[UITbarBar appearance] setShadowImage:[UIImage new]];
[[UITabBar appearance]setBackgroundImage:[UIImage new]];