iOS UISegmentedControl改变样式
来源:互联网 发布:xp禁止程序联网软件 编辑:程序博客网 时间:2024/06/05 17:54
NSArray *titleArray = @[@"商品列表",@"企业列表",@"个人中心"];UISegmentedControl *segment = [[UISegmentedControl alloc] initWithItems:titleArray];segment.frame = CGRectMake(12, 45, WIDTH-24, 25);segment.tintColor = [UIColor whiteColor];NSDictionary* selectedTextAttributes = @{NSFontAttributeName:[UIFont boldSystemFontOfSize:12],NSForegroundColorAttributeName: COLOR};[segment setTitleTextAttributes:selectedTextAttributes forState:UIControlStateSelected];NSDictionary* unselectedTextAttributes = @{NSFontAttributeName:[UIFont boldSystemFontOfSize:12],NSForegroundColorAttributeName: [UIColor whiteColor]};[segment setTitleTextAttributes:unselectedTextAttributes forState:UIControlStateNormal];segment.selectedSegmentIndex = 1;//默认选中[backGroundView addSubview:segment];
1 0
- iOS UISegmentedControl改变样式
- ios UISegmentedControl KVO 检测selectedSegmentIndex的改变
- IOS改变状态栏样式
- 改变ios input样式
- IOS UISegmentedControl
- IOS UISegmentedControl
- UISegmentedControl 改变选中颜色
- [iOS开发]TextKit之动态改变样式
- iOS 改变状态栏的颜色(样式)
- iOS之 改变日期显示样式
- [iOS]UITableView滑动删除按钮样式改变
- ios UISegmentedControl 用法
- [IOS] iphone之UISegmentedControl
- IOS UISegmentedControl实例
- UISegmentedControl-IOS开发
- iOS-选择控件 UISegmentedControl
- IOS之UISegmentedControl
- 【iOS学习】----UISegmentedControl
- UVA 11021 全概率公式+递推的使用
- zxing生成二维码
- 基于DragonBoard 410c的家庭智能环保卫士——(12)环境数据融合
- 唱吧DevOps的落地,微服务CI/CD的范本技术解读
- Linux运维笔记-文档总结-控制对文件的访问
- iOS UISegmentedControl改变样式
- 更新Android Studio到2.3.1出现的问题
- 1970年时间转换
- 【质量管理改进】敏捷测试思想
- js入门(9)-认识DOM
- 算典05_例题_12_UVA-221
- 数据类型String常量池的特性
- 自动回复聊天机器人
- mysql杂记