// 1.去掉整个segment颜色,现在整个segment都看不见
self.segment.tintColor = [UIColor clearColor];
// //设置文字属性其,把两个button的文字显示出来
NSDictionary* selectedTextAttributes = @{NSFontAttributeName:[UIFont boldSystemFontOfSize:14],NSForegroundColorAttributeName: [UIColor whiteColor]};
[ self.segment setTitleTextAttributes:selectedTextAttributes forState:UIControlStateSelected];
NSDictionary* unselectedTextAttributes = @{NSFontAttributeName:[UIFont boldSystemFontOfSize:14],NSForegroundColorAttributeName: [UIColor lightTextColor]};
[self.segment setTitleTextAttributes:unselectedTextAttributes forState:UIControlStateNormal];