title: Objective-C – Queuing up and delaying UIKit messages
body: <p>I'm delaying <code>UIKit</code> messages as per this <a href="https://stackoverflow.com/a/13662842/294661">SO answer</a></p>
  
  <p>Now another requirement has arisen, instead of just queuing <code>SSHUDView</code> method calls we should also handle queing of <code>UIAlertView</code>. For example one scenario could be that we display a hud then after 1 second we display another hud and then finally after 1 second we display a <code>UIAlertView</code>. </p>
  
  <p>The problem is now that since the <code>SSHUDView</code>s are run asynchronously on a background thread when I get to display the <code>UIAlertView</code> the <code>SSHUDView</code>s have not finished displaying so the <code>UIAlertView</code> will overlay the hud. </p>
  
  <p>Basically I need a way to queue up and delay methods whether they are of class <code>SSHUDView</code> or <code>UIAlertView</code>. A feedback queue, where you can delay individual messages.</p>