To add Sam Vermette’s SVPullToRefresh to your RubyMotion project:
- Add the SVPullToRefresh pod
- 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 }# …