Permalink
Browse files

Work around accessibility API for table views so that we only see vis…

…ible cells.
  • Loading branch information...
1 parent 9b65734 commit 2997fcb28ad9849faf17f9d1af5fea1d181679b2 Rob Holland committed Jun 17, 2010
Showing with 11 additions and 0 deletions.
  1. +11 −0 ext/iCuke/sdk4.0/Viewer.m
View
@@ -115,6 +115,17 @@ -(void)appendToXml:(NSMutableString *)xml {
@end
+@implementation UITableView (AccessibilityVisibilityFix)
+
+-(void)appendChildrenToXml:(NSMutableString *)xml {
+ // Ignore the accessibility interface here because it doesn't allow us a way to tell if a cell is visible.
+ for (UIView *view in [self visibleCells]) {
+ [view appendToXml: xml];
+ }
+}
+
+@end
+
@interface UIView (Viewer)
-(void)appendToXml:(NSMutableString *)xml;

0 comments on commit 2997fcb

Please sign in to comment.