title: Make UIAlertView Button trigger function On Press
body: <p>Currently I am using the following code to present a UIAlertView:</p>
  
  <pre><code>UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Today's Entry Complete"
                          message:@"Press OK to submit your data!" 
                         delegate:nil 
                cancelButtonTitle:@"OK" 
                otherButtonTitles: nil];
      [alert show];
      [alert release];
  </code></pre>
  
  <p>How do I get it so that when 'OK" is pressed, it triggers a function, say <code>-(void)submitData</code></p>