UIATableView Always Named "Empty list"

I am trying to set up some UIAutomation tests on an iPhone. Whenever I execute logElementTree () in the main window, all of my UIATableView elements are named "Empty List". I tried to set the name in the corresponding XIB file, but as soon as the data was downloaded, the name would be set to the "Empty list" again. The following is an example of output from a call to logElementTree ():

 4) UIATableView [name:Empty list value:rows 1 to 1 of 1 rect:{{x:0, y:64}, {width:320, height:416}}]
 5) UIATableCell [name:OfferCardTableViewCell value:(null) rect:{{x:0, y:160}, {width:320, height:416}}]
 6) UIAWebView [name:(null) value:(null) rect:{{x:0, y:160}, {width:320, height:418}}]
 6) UIAWebView [name:(null) value:(null) rect:{{x:320, y:160}, {width:320, height:418}}]
 6) UIAWebView [name:(null) value:(null) rect:{{x:640, y:160}, {width:320, height:418}}]

As you can see, the table view is not empty. Does anyone know how I can guarantee that the UIATableView element will be given a name other than "Empty list?". Is there a delegate I’m not implementing somewhere?

+3
source share
2 answers

accessibilityLabel UITableView. Xcode 4 Interface Builder - .

+1

. , ; . .

, .

:

Identity Inspector - User Defined Runtime Attributes:

Key Path: accessibilityIdentifier
Type: String
Value: <your identifier>
+1

All Articles