2013-12-17 113 views
1

我该如何做一个拖放Calabash-ios拖放葫芦 - ios?

我试着记录和回放。 它不适合我。

有没有其他简单的方法来做到这一点?

回答

0

此示例重新排序一个小区到另一小区的位置在表视图

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})