Skip to content

Commit

Permalink
Minor formatting tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltyson committed Sep 29, 2015
1 parent 81e6a16 commit 469f932
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions TPKeyboardAvoiding/UIScrollView+TPKeyboardAvoidingAdditions.m
Expand Up @@ -240,14 +240,12 @@ - (CGFloat)TPKeyboardAvoiding_nextInputViewHeuristicForViewFrame:(CGRect)frame {
+ (-frame.origin.x); // Prefer elements closest to left
}

- (BOOL)TPKeyboardAvoiding_viewHiddenOrUserInteractionNotEnabled:(UIView *)view
{
UIView *checkView = view;
while (checkView) {
if (checkView.hidden || !checkView.userInteractionEnabled) {
- (BOOL)TPKeyboardAvoiding_viewHiddenOrUserInteractionNotEnabled:(UIView *)view {
while ( view ) {
if ( view.hidden || !view.userInteractionEnabled ) {
return YES;
}
checkView = checkView.superview;
view = view.superview;
}
return NO;
}
Expand Down

0 comments on commit 469f932

Please sign in to comment.