1

如何在Calabash-ios中进行拖放操作?

我尝试了录制和播放。它对我不起作用。

还有其他简单的方法吗?

4

1 回答 1

0

This example reorders one cell to position of other cell in a table view

touch("UILabel marked:'Edit'") // Touchs table edit button
query_from = "UILabel marked:'Label_of_moving_cell' parent UITableViewCell child view child UITableViewCellReorderControl"
query_to = "UILabel marked:'Label_of_destination_cell' parent UITableViewCell child view child UITableViewCellReorderControl"
pan(query_from,query_to,{duration:1})
于 2014-07-19T13:39:12.427 回答