1. 设置TabBarItem图片的大小
1 - (void)configurationAppTabBarAndNavigationBar 2 { 3 // 选中的item普通状态图片的大小 4 UIImage *normalImage = self.navigationController.tabBarController.tabBar.selectedItem.image; 5 UIImage *tabNormalImage = [ToolObject createNewImageWithColor:normalImage multiple:1.1]; 6 tabNormalImage = [tabNormalImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 7 [self.navigationController.tabBarController.tabBar.selectedItem setImage:tabNormalImage]; 8 // 选中的item选中撞他图片的大小 9 UIImage *selectImage = self.naviga
iOS 使用系统的UITabBarController 修改展示的图片大小
最新推荐文章于 2018-11-16 11:45:54 发布
这篇博客介绍了如何在iOS应用中修改UITabBarController中TabBarItem选中和普通状态下的图片大小,提供了简单易懂的方法。
摘要由CSDN通过智能技术生成