RubyMotion – PullToRefresh

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

  1. Add the SVPullToRefresh pod
  2. Add the Quartz Framework
# RakefileMotion::Project::App.setup do |app| 	# … app.frameworks += [‘QuartzCore’]	app.pods do pod ‘SVPullToRefresh’ # … endend # Then in your controller def viewDidLoad 	# …. tableView.addPullToRefreshWithActionHandler    Proc.new {        loadMagicalData(tableView)        # do some other magic        # then don’t forget to:        tableView.pullToRefreshView.stopAnimating    }# …