Skip to content
Browse files

Merge branch 'master' of source.xing.com:stefan-munz/KIF

  • Loading branch information...
2 parents 6e26d96 + b064399 commit 0d27bc90d6cf18af397d38f4890d35c2fce0a534 @stefanmunz committed Sep 9, 2011
Showing with 4 additions and 3 deletions.
  1. +2 −2 Additions/UIApplication-KIFAdditions.m
  2. +2 −1 Classes/KIFTestStep.m
View
4 Additions/UIApplication-KIFAdditions.m
@@ -29,8 +29,8 @@ - (UIAccessibilityElement *)accessibilityElementWithLabel:(NSString *)label trai
- (UIAccessibilityElement *)accessibilityElementWithLabel:(NSString *)label accessibilityValue:(NSString *)value traits:(UIAccessibilityTraits)traits;
{
- // go through the array of windows in reverse orde to process the frontmost window first.
- // when several elements with the same accessibilitylabel are present the one in front will be picked
+ // Go through the array of windows in reverse order to process the frontmost window first.
+ // When several elements with the same accessibilitylabel are present the one in front will be picked.
for (UIWindow *window in [[self windows] reverseObjectEnumerator]) {
UIAccessibilityElement *element = [window accessibilityElementWithLabel:label accessibilityValue:value traits:traits];
if (element) {
View
3 Classes/KIFTestStep.m
@@ -620,8 +620,9 @@ + (BOOL)_isUserInteractionEnabledForView:(UIView *)view;
isUserInteractionEnabled = YES;
}
}
+
// UIActionsheet Buttons have UIButtonLabels with userInteractionEnabled=NO inside,
- // grab the superview UINavigationButton instead
+ // grab the superview UINavigationButton instead.
if (!isUserInteractionEnabled && [view isKindOfClass:NSClassFromString(@"UIButtonLabel")]) {
UIView *button = [view superview];
while (button && ![button isKindOfClass:NSClassFromString(@"UINavigationButton")]) {

0 comments on commit 0d27bc9

Please sign in to comment.
Something went wrong with that request. Please try again.