您的位置:首页 > 产品设计 > UI/UE

iOS7 与 iOS8上 uisegementcontrol 设置image不显示问题

2015-05-30 20:39 507 查看
http://stackoverflow.com/questions/22407725/ios7-uisegmentcontrol-image-does-not-display

For ios7, the default treatment for images with a segmented control is to colorise them according to the tint properties of the segmented control. To override this behaviour, use the following code
NSArray *itemArray = [NSArray arrayWithObjects:
[[UIImage imageNamed:@"segment1.png"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal],
[[UIImage imageNamed:@"segment2.png"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal],
nil];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: