To add Sam Vermette’s SVPullToRefresh to your RubyMotion project:

  1. Add the SVPullToRefresh pod
  2. Add the Quartz Framework
# Rakefile
Motion::Project::App.setup do |app| 
	# … app.frameworks += [‘QuartzCore’]
	app.pods do pod ‘SVPullToRefresh’ # … end
end 

# Then in your controller 
def viewDidLoad 
	# …. tableView.addPullToRefreshWithActionHandler
    Proc.new {
        loadMagicalData(tableView)
        # do some other magic
        # then don’t forget to:
        tableView.pullToRefreshView.stopAnimating
    }
# …