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