Browse Source

[iOS] Setting title through navigation item doesn't change the tab bar label (#897)

grin 7 years ago
parent
commit
68449cc48c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      ios/Helpers/RCCTitleViewHelper.m

+ 1
- 1
ios/Helpers/RCCTitleViewHelper.m View File

61
     self.titleView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;
61
     self.titleView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;
62
     self.titleView.clipsToBounds = YES;
62
     self.titleView.clipsToBounds = YES;
63
     
63
     
64
-    self.viewController.title = self.title;
64
+    self.viewController.navigationItem.title = self.title;
65
     
65
     
66
     if ([self isTitleOnly]) {
66
     if ([self isTitleOnly]) {
67
         self.viewController.navigationItem.titleView = nil;
67
         self.viewController.navigationItem.titleView = nil;