UISegmentedControl去掉边框-姬云鹏
2016-11-07 20:56
295 查看
segment.tintColor = [UIColor clearColor];//去掉颜色,现在整个segment都看不见NSDictionary* selectedTextAttributes = @{NSFontAttributeName:[UIFont boldSystemFontOfSize:16],NSForegroundColorAttributeName: [UIColor whiteColor]};[segment setTitleTextAttributes:selectedTextAttributes
forState:UIControlStateSelected];//设置文字属性NSDictionary* unselectedTextAttributes = @{NSFontAttributeName:[UIFont boldSystemFontOfSize:16],NSForegroundColorAttributeName: [UIColor lightTextColor]};[segment setTitleTextAttributes:unselectedTextAttributes forState:UIControlStateNormal];
forState:UIControlStateSelected];//设置文字属性NSDictionary* unselectedTextAttributes = @{NSFontAttributeName:[UIFont boldSystemFontOfSize:16],NSForegroundColorAttributeName: [UIColor lightTextColor]};[segment setTitleTextAttributes:unselectedTextAttributes forState:UIControlStateNormal];
相关文章推荐
- 去掉UISegmentedControl的边框颜色
- iOS开发(10)UISegmentedControl
- css去掉点击连接时所产生的虚线边框技巧兼容符合w3c标准的浏览器
- 去掉谷歌浏览器获取焦点时默认的input、textarea的边框和背景
- UINavigationBar + UISegmentedControl
- 老问题,新解法:关于去掉WebBrowser的边框和滚动条
- UISegmentedControl的详细使用
- 关于JInternalFrame去掉边框和标题栏 .
- IOS UIWebView去掉边框的方法
- UISegmentedControl的使用 IOS学习手记
- dialog去掉边框
- 图片有带颜色的边框,去掉方法
- UISegmentedControl和UIStepper的使用
- html中去掉文本框(input type="text")的边框或只显示下边框
- 去掉android二维码的边框
- CSS控制去掉textArea和input的边框
- mfc窗口去掉标题栏及边框
- IFrame 框架去掉边框
- html 去掉input 获取焦点时的边框
- 去掉cell边框的简单办法