1   UIImage *tabBackground = [[UIImage imageNamed:@"tab_bg"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
2   [[UITabBar appearance] setBackgroundImage:tabBackground];  // 设置UITabBar背景图片
3     
4   [[UITabBar appearance] setSelectionIndicatorImage:
5             [UIImage imageNamed:@"tab_select_indicator"]];   // 设置UITabBar用户选中某项时,此项的背景图片

 

相关文章:

  • 2021-08-10
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
  • 2021-12-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2021-10-23
  • 2021-11-27
相关资源
相似解决方案