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
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];
相关文章推荐
- 设置UILabel背景和文字的透明度(代码和SB两种实现)
- Algs4 union-find算法 带路径压缩的加权Quick-Union实现
- Android 开发工具类 29_sendPOSTRequest
- SpriteWithHue,通过修改色调实现资源复用
- Arduino学习笔记 函数的秘密~~~
- Arduuino复合运算符+Arduino基础~~~
- UISearchBar
- Android 开发工具类 28_sendGETRequest
- android UI 仿 win 8 模块化 标题,并实现 可长按拖动交换图片位置、可点击,且伴随动画特效
- The JSP specification requires that an attribute name is preceded by whitespace
- android build系统
- PHP include 和 require
- UIImageView 的contentMode属性
- UEFI+GPT引导全方位讲解:什么是GPT,什么是UEFI
- Bluemix实战教程: CF命令学习分享
- 【测试】关于UI自动化的疑问(记录ing)
- Pyqt QSS简单的Ui美化
- STL--queue
- UITableView/UIScrollView内容视图下移
- 禁止uiscrollview垂直方向滚动,只允许水平方向滚动;或只允许垂直方向滚动