瀏覽代碼

Fix truncated bottomTab.text with semibold fontWeight (#6026)

Yogev Ben David 5 年之前
父節點
當前提交
b01629c41d
No account linked to committer's email address
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      lib/ios/TabBarItemAppearanceCreator.m

+ 2
- 0
lib/ios/TabBarItemAppearanceCreator.m 查看文件

9
 }
9
 }
10
 
10
 
11
 + (void)setTitleAttributes:(UITabBarItem *)tabItem titleAttributes:(NSDictionary *)titleAttributes {
11
 + (void)setTitleAttributes:(UITabBarItem *)tabItem titleAttributes:(NSDictionary *)titleAttributes {
12
+    [super setTitleAttributes:tabItem titleAttributes:titleAttributes];
12
     tabItem.standardAppearance.stackedLayoutAppearance.normal.titleTextAttributes = titleAttributes;
13
     tabItem.standardAppearance.stackedLayoutAppearance.normal.titleTextAttributes = titleAttributes;
13
 }
14
 }
14
 
15
 
15
 + (void)setSelectedTitleAttributes:(UITabBarItem *)tabItem selectedTitleAttributes:(NSDictionary *)selectedTitleAttributes {
16
 + (void)setSelectedTitleAttributes:(UITabBarItem *)tabItem selectedTitleAttributes:(NSDictionary *)selectedTitleAttributes {
17
+    [super setSelectedTitleAttributes:tabItem selectedTitleAttributes:selectedTitleAttributes];
16
     tabItem.standardAppearance.stackedLayoutAppearance.selected.titleTextAttributes = selectedTitleAttributes;
18
     tabItem.standardAppearance.stackedLayoutAppearance.selected.titleTextAttributes = selectedTitleAttributes;
17
 }
19
 }
18
 
20