Only image as UITabBarItem

后端 未结 9 2073
伪装坚强ぢ
伪装坚强ぢ 2021-02-01 05:29

I would only like to have an icon as the UITabBarItem and not the text underneath and I was wondering if this was possible, if so, how? TIA

9条回答
  •  清歌不尽
    2021-02-01 05:41

    like this

    UITabBarItem * personalBarItem = [[UITabBarItem alloc] init];
    [personalBarItem setFinishedSelectedImage:[UIImage imageNamed:@"personal_click"] withFinishedUnselectedImage:[UIImage imageNamed:@"personal"]];
    

提交回复
热议问题