【问题标题】:Customize more button of tabbar自定义标签栏的更多按钮
【发布时间】:2019-03-15 14:53:10
【问题描述】:

我陷入了一种情况,我想更改标签栏的默认更多按钮的文本,在我的情况下,我们需要 7 个标签,而 iOS 将附加标签移动到更多,我想更改该标签的文本。

有人可以帮忙吗?

提前致谢

【问题讨论】:

    标签: ios swift uitabbarcontroller uitabbar uitabbaritem


    【解决方案1】:

    您可以像这样更改标题和图标:

    斯威夫特:

    tabBarController?.moreNavigationController.tabBarItem = UITabBarItem(title: "Title", image: UIImage(named: "image"), tag: 0)

    Objective-C

    tabBarController.moreNavigationController.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"Title" image:[UIImage imageNamed:@"imageName"] tag:0];

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-04-26
      • 1970-01-01
      • 2011-03-26
      • 1970-01-01
      • 2021-12-16
      • 1970-01-01
      • 2010-10-01
      相关资源
      最近更新 更多