code review enhancement
This commit is contained in:
parent
4cc2a1cda0
commit
d322764987
@ -414,14 +414,7 @@
|
||||
if (![focusedElement isKindOfClass:[UIView class]]) {
|
||||
return NO;
|
||||
}
|
||||
UIView *focusedView = focusedElement;
|
||||
while (focusedView != nil) {
|
||||
if (focusedView == self) {
|
||||
return YES;
|
||||
}
|
||||
focusedView = [focusedView superview];
|
||||
}
|
||||
return NO;
|
||||
return [(UIView *)focusedElement isDescendantOfView:self];
|
||||
}
|
||||
|
||||
- (void)accessibilityFocusChanged:(NSNotification *)notification {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user