[self.tabbarItem setimage:[UIImage imagenamed:@"multi30x30.png"]];[self.tabbarItem setFinishedSelectedImage:[UIImage imagenamed:@"multi30x30.png"] withFinishedUnselectedImage:[UIImage imagenamed:@"multi30x30.png"]];
有人能帮我吗?
解决方法 你可以试试这个:[[[self.tabbarController.vIEwControllers objectAtIndex:0] tabbarItem]setFinishedSelectedImage:[UIImage imagenamed:@"LocateIconActive.png"] withFinishedUnselectedImage:[UIImage imagenamed:@"LocateIconInactive.png"]];[[[self.tabbarController.vIEwControllers objectAtIndex:1] tabbarItem]setFinishedSelectedImage:[UIImage imagenamed:@"ProductsIconActive.png"] withFinishedUnselectedImage:[UIImage imagenamed:@"ProductsIconInactive.png"]];[[[self.tabbarController.vIEwControllers objectAtIndex:2] tabbarItem]setFinishedSelectedImage:[UIImage imagenamed:@"NextDeliveryIconActive.png"] withFinishedUnselectedImage:[UIImage imagenamed:@"NextDeliveryIconInactive.png"]];总结
以上是内存溢出为你收集整理的ios – Tabbar项目图像不会出现全部内容,希望文章能够帮你解决ios – Tabbar项目图像不会出现所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)