To change background colour of UITabBar
TabBarController* Tcontroller =(TabBarController*)self.window.rootViewController;
Tcontroller.tabBar.barTintColor=[UIColor greenColor];
您应该根据自己的数量计算您的tabbaritem的图像大小,例如,如果您有4个标签项:每个项目的宽度将是屏幕宽度的1/4,高度是平板电脑高度。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.