|
|
|
|
47
|
[navigationController rnn_setNavigationBarFontFamily:[options.topBar.title.fontFamily getWithDefaultValue:nil] fontSize:[options.topBar.title.fontSize getWithDefaultValue:nil] color:[options.topBar.title.color getWithDefaultValue:nil]];
|
47
|
[navigationController rnn_setNavigationBarFontFamily:[options.topBar.title.fontFamily getWithDefaultValue:nil] fontSize:[options.topBar.title.fontSize getWithDefaultValue:nil] color:[options.topBar.title.color getWithDefaultValue:nil]];
|
48
|
[navigationController rnn_setBackButtonColor:[options.topBar.backButton.color getWithDefaultValue:nil]];
|
48
|
[navigationController rnn_setBackButtonColor:[options.topBar.backButton.color getWithDefaultValue:nil]];
|
49
|
[navigationController rnn_setBackButtonIcon:[options.topBar.backButton.icon getWithDefaultValue:nil] withColor:[options.topBar.backButton.color getWithDefaultValue:nil] title:[options.topBar.backButton.showTitle getWithDefaultValue:YES] ? [options.topBar.backButton.title getWithDefaultValue:nil] : @""];
|
49
|
[navigationController rnn_setBackButtonIcon:[options.topBar.backButton.icon getWithDefaultValue:nil] withColor:[options.topBar.backButton.color getWithDefaultValue:nil] title:[options.topBar.backButton.showTitle getWithDefaultValue:YES] ? [options.topBar.backButton.title getWithDefaultValue:nil] : @""];
|
50
|
-
|
|
|
51
|
- if (options.topBar.background.component.name.hasValue) {
|
|
|
52
|
- [self presentBackgroundComponent];
|
|
|
53
|
- }
|
|
|
54
|
}
|
50
|
}
|
55
|
|
51
|
|
56
|
- (void)applyOptionsOnWillMoveToParentViewController:(RNNNavigationOptions *)options {
|
52
|
- (void)applyOptionsOnWillMoveToParentViewController:(RNNNavigationOptions *)options {
|
|
|
|
|
60
|
[navigationController rnn_setBackButtonIcon:[options.topBar.backButton.icon getWithDefaultValue:nil] withColor:[options.topBar.backButton.color getWithDefaultValue:nil] title:[options.topBar.backButton.showTitle getWithDefaultValue:YES] ? [options.topBar.backButton.title getWithDefaultValue:nil] : @""];
|
56
|
[navigationController rnn_setBackButtonIcon:[options.topBar.backButton.icon getWithDefaultValue:nil] withColor:[options.topBar.backButton.color getWithDefaultValue:nil] title:[options.topBar.backButton.showTitle getWithDefaultValue:YES] ? [options.topBar.backButton.title getWithDefaultValue:nil] : @""];
|
61
|
}
|
57
|
}
|
62
|
|
58
|
|
|
|
59
|
+- (void)applyOptionsOnViewDidLayoutSubviews:(RNNNavigationOptions *)options {
|
|
|
60
|
+ if (options.topBar.background.component.name.hasValue) {
|
|
|
61
|
+ [self presentBackgroundComponent];
|
|
|
62
|
+ }
|
|
|
63
|
+}
|
|
|
64
|
+
|
63
|
- (void)applyOptionsBeforePopping:(RNNNavigationOptions *)options {
|
65
|
- (void)applyOptionsBeforePopping:(RNNNavigationOptions *)options {
|
64
|
RNNNavigationController* navigationController = self.bindedViewController;
|
66
|
RNNNavigationController* navigationController = self.bindedViewController;
|
65
|
[navigationController setTopBarBackgroundColor:[options.topBar.background.color getWithDefaultValue:nil]];
|
67
|
[navigationController setTopBarBackgroundColor:[options.topBar.background.color getWithDefaultValue:nil]];
|