<分区>
我正在尝试显示原始标签栏图像。以下代码在 iOS7 中运行良好,但在 iOS 6.0 中会出现上述崩溃。以下是 AppDelegates
didFinishLaunchingWithOptions
UITabBar *tb = tabBarControllerProperty.tabBar;
NSArray *itemsObject = tb.items;
for(UITabBarItem *tabItem in itemsObject)
{
UIImage *imaged = tabItem.image;
tabItem.selectedImage = imaged;
tabItem.image = [imaged imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];// crash for ios6, not in ios 7
}