我想改变我的tabbar在ViewController中的图像,但要显示新的图像,我必须点击每个标签栏项目。重新加载/刷新ViewController中的标签栏项目?
for (CustomTabBarItem *myItem in self.tabBarController.tabBar.items){
myItem.enabled = YES;
myItem.badgeValue = @"1";
UIImage *myImage = [[UIImage alloc] initWithContentsOfFile:[[DesignManager sharedManager] getPathOfFile:@"test.png"]];
*myItem.imageSelect= *myImage; // change images of each item. don't appear if I dont click on the item
}
任何人都知道我该如何直接显示这些图像? 谢谢
它的工作!谢谢 – blade196 2010-11-18 17:29:30