开发者

How to select (-) icons while editing a tabel, in Iphone UIAutomation

开发者 https://www.devze.com 2023-03-02 17:38 出处:网络
Hi i am learning UI-Automation on I phone, can any one tell me what reference should be use开发者_开发技巧d to select (-) or (+) buttons while editing a table.set the editing property of UITableView t

Hi i am learning UI-Automation on I phone, can any one tell me what reference should be use开发者_开发技巧d to select (-) or (+) buttons while editing a table.


set the editing property of UITableView to true..

 tableView.editing=YES;


For Deleting, this works for me:

    tableView.cells()[cellName].switches()[0].setValue(true);
    tableView.cells()[cellName].buttons()[0].tap();

So I'd assume that for "+" you'd just need to tap button at index 0:

    tableView.cells()[cellName].buttons()[0].tap();

Now that you can use Instruments to record your actions that is probably the easiest way to get the correct syntax that will work for you.

0

精彩评论

暂无评论...
验证码 换一张
取 消