title: Yes/No Confirmation UIAlertView
body: <p>I usually use the following code for a confirmation alert</p>
  
  <pre class="lang-cs prettyprint-override"><code>int buttonClicked = -1;
  UIAlertView alert = new UIAlertView(title, message, null, NSBundle.MainBundle.LocalizedString ("Cancel", "Cancel"),
                                      NSBundle.MainBundle.LocalizedString ("OK", "OK"));
  alert.Show ();
  alert.Clicked += (sender, buttonArgs) =&gt;  { buttonClicked = buttonArgs.ButtonIndex; };
  
  // Wait for a button press.
  while (buttonClicked == -1)
  {
      NSRunLoop.Current.RunUntil(NSDate.FromTimeIntervalSinceNow (0.5));
  }
  
  if (buttonClicked == 1)
  {
      return true;
  }
  else
  {
      return false;
  }
  </code></pre>
  
  <p>This doesn't appear to be working in iOS7. The loop just continues to run and the <code>Clicked</code> event never seems to get fired. Does anyone have a working example of how to do a confirmation alert?</p>