Skip to content

Instantly share code, notes, and snippets.

@adelevie
Created October 1, 2012 00:53
Show Gist options
  • Save adelevie/3808880 to your computer and use it in GitHub Desktop.
Save adelevie/3808880 to your computer and use it in GitHub Desktop.
RubyMotion: Alternative way to show a HUD until a block finishes
MBProgressHUD.showHUDAddedTo(@view, animated:true)
BW::Reactor.defer(proc do
@posts = Post.query.find
end, proc do
MBProgressHUD.hideHUDForView(@view, animated:true)
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment