大家好,我正在学习I上的UI-Automation,谁能告诉我在编辑表时应该使用什么引用来选择(-)或(+)按钮。
发布于 2011-05-03 19:41:43
将UITableView的编辑属性设置为true。
tableView.editing=YES;发布于 2011-12-09 01:06:24
对于删除,这对我是有效的:
tableView.cells()[cellName].switches()[0].setValue(true);
tableView.cells()[cellName].buttons()[0].tap();所以我假设对于"+“,你只需要点击索引0处的按钮:
tableView.cells()[cellName].buttons()[0].tap();现在您可以使用Instruments记录您的操作,这可能是获得适合您的正确语法的最简单方法。
https://stackoverflow.com/questions/5868694
复制相似问题