dhemery / victor

A Java driver for iOS applications
MIT License
11 stars 4 forks source link

How to Implement Pull to refresh functionality #22

Closed rohitkothari85 closed 11 years ago

rohitkothari85 commented 11 years ago

Hi, I am looking for a pull to refresh functionality. Is there a way to implement it using frakified.

dhemery commented 11 years ago

I do not understand what you mean. I'm going to close this. If you can explain better, I'll consider reopening.

rohitkothari85 commented 11 years ago

By "Pull to refresh" I mean is "There is a functionality to refresh the application by dragging the app down and then releasing it. The app gets refresh directly after that."

Am I clear now.

dhemery commented 11 years ago

D'oh! I interpreted "pull" as a git command. Now I see what you mean.

I haven't tried "pull and release" yet with Victor. Frank adds some kind of drag-and-drop-to-point method to each view. If that does not work for you, I think there is also a method to send a series of gestures through Frank.

Alas, I have not used either method, and I don't have time to research it at the moment. Try asking on the Frank mailing list. Since you're trying to use Victor, make sure to say that you're looking for what method to call, and not some Ruby or Cucumber step.

Once you know what method to call, and what parameters to pass, you can invoke the method on your view by sending it a message:

IosView view = ...;
view.sendMessage("someMethod:", "someParameter");