iOS8下的开发变化

http://www.cocoachina.com/bbs/3g/read.php?tid=217107

IOS8 Tabbar变蓝的情况, 已经自己摸索出来了

if (IOS7以上) {

self.tabBarItem = [[UITabBarItem alloc] initWithTitle:self.title image:[UIImage imageNamed:默认图片] selectedImage:[UIImage imageNamed:选择后图片]];

self.tabBarItem.selectedImage = [self.tabBarItem.selectedImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];

self.tabBarItem.image = [self.tabBarItem.image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];

}

else{

self.tabBarItem.image = [UIImage imageNamed:选择后图片];

[self.tabBarItem setFinishedSelectedImage:[UIImage imageNamed:选择后图片]

withFinishedUnselectedImage:[UIImage imageNamed:默认图片]];

}



# via@新浪微博:王星凯SoWhat

你可能感兴趣的:(iOS8下的开发变化)