NSDictionary *dic = [NSDictionary dictionaryWithObjectsAndKeys:[UIColor blackColor],UITextAttributeTextColor,[UIFont fontWithName:@"AppleGothic"size:14],UITextAttributeFont ,nil];

    //设置各种状态的字体和颜色
    [self.segmentedControl setTitleTextAttributes:dic forState:UIControlStateNormal];

相关文章:

  • 2022-12-23
  • 2021-12-10
  • 2021-08-18
  • 2021-12-06
  • 2022-03-02
  • 2022-01-21
  • 2021-12-24
  • 2022-12-23
猜你喜欢
  • 2022-02-21
  • 2022-01-12
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
  • 2022-12-23
相关资源
相似解决方案