IPhone: How to call AlertView from a Static Function
<p>I have a class as follows</p>

<pre><code>#import "UtilAlert.h"

@implementation UtilAlert

+(void) showAlert:(NSString *)message andTitle:(NSString *)title andDelegate:(UIViewController *) delegate
{
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title message:message delegate:delegate cancelButtonTitle:@"Cancel" otherButtonTitles:nil];
    [alert show];

}

@end
</code></pre>

<p>The problem is that when call the function with  necessary parameters...</p>

<pre><code>[UtilAlert showAlert:@"hello" andTitle:@"hello" andDelegate:self] ;
</code></pre>

<p>i get a error: <strong>Thread 1: stopped at  break point 3;</strong></p>

<p>for the function call from an UIController class</p>
