Skip to content

Commit

Permalink
Merge pull request tombenner#216 from phatmann/support-input-accessories
Browse files Browse the repository at this point in the history
Support input accessory auto-update and orientation change
  • Loading branch information
tombenner committed Feb 19, 2014
2 parents 8c32b52 + e878672 commit 7811380
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions NUI/Core/NUIRenderer.m
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,15 @@ + (void)rerenderView:(UIView *)view
if ([view respondsToSelector:@selector(applyNUI)]){
[view applyNUI];
}

if ([view respondsToSelector:@selector(inputAccessoryView)]){
if ([view isFirstResponder]) {
UIView *inputAccessoryView = [view inputAccessoryView];

if (inputAccessoryView)
[self rerenderView:inputAccessoryView];
}
}
}

+ (void)setRerenderOnOrientationChange:(BOOL)rerender
Expand Down

0 comments on commit 7811380

Please sign in to comment.