Using UIAlertView in a manner similar to Windows' MessageBox()?
<p>I'm new to the iPhone and I would like to be able to use UIAlertView in a manner similar to the Windows MessageBox() or the MessageDlg() in Delphi.</p>

<p>For example, I have a method that needs to ask the user for confirmation on something, and proceed based on their response.</p>

<p>E.g. (pseudocode):</p>

<pre><code>-(void)doSomething
{
  [doStep1];
  [doStep2];
  var myValue = [getDefaultValue];

  if (myValue = nil)
  {
    if [promptUser(@"No value in setting. Use the default value?")] //UIAlertView here?
    {
       myValue = @"defaultValue";
    }
    else
      return;  // bug out of the routine 'cause we have no value.
  }

  [doStep3 withValue:myValue];

}
</code></pre>

<p>Or, put put it another way- is there a way of using UIAlertView to ask the user a question within a routine as a way of controlling the logic flow of that routine?</p>
