Skip to content

Commit

Permalink
fix(ios): fix crash when setting navTinColor during a view transition (
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn authored Sep 23, 2023
1 parent e4b3974 commit 9e016ee
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ - (void)viewDidDisappear:(BOOL)animated; // Called after the view was dismissed,

- (void)setNavTintColor:(id)color
{
__block TiColor *newColor = [TiUtils colorValue:color];
__block TiColor *newColor = [[TiUtils colorValue:color] retain];

[self replaceValue:newColor forKey:@"navTintColor" notification:NO];
TiThreadPerformOnMainThread(
Expand All @@ -331,6 +331,7 @@ - (void)setNavTintColor:(id)color
UINavigationBar *navBar = [[controller navigationController] navigationBar];
[navBar setTintColor:[newColor color]];
[self performSelector:@selector(refreshBackButton) withObject:nil afterDelay:0.0];
[newColor release];
}
},
NO);
Expand Down

0 comments on commit 9e016ee

Please sign in to comment.