UISegmentedControl去掉边框-姬云鹏

来源:互联网 发布:照片变成手绘软件 编辑:程序博客网 时间:2024/06/08 03:43
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];
0 0
原创粉丝点击