gpt4 book ai didi

ios - [UIImage imageWithRenderingMode :]: unrecognized selector sent to instance

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:51:09 24 4
gpt4 key购买 nike

<分区>

我正在尝试显示原始标签栏图像。以下代码在 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
}

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com