NSDictionary *navbarTitleTextAttributes = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                                                     [UIColor whiteColor],UITextAttributeTextColor,
                                                                                                     [UIColor blackColor], UITextAttributeTextShadowColor,
                                                                                                     [UIFont fontWithName:CHINESE_FONT_NAME size:20.0f],UITextAttributeFont,
                                                                                                     [NSValue valueWithUIOffset:UIOffsetMake(-1, 0)], UITextAttributeTextShadowOffset, nil];
                [[UINavigationBar appearance] setTitleTextAttributes:navbarTitleTextAttributes];

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案