Why UIAlertView need to be localized?
<p>I have declared UIAlertView *alert in the .h file. alloc alert in func1.  and show &amp; release in func2.  This would cause memory BAD_EXEC_ACCESS issue.</p>

<pre><code>-(void) func1 
{
alert= [[UIAlertView alloc] initWithTitle:nil message:@"To Confirm." delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];

}

-(void) func2
{
[alert show];
[alert release];
}
</code></pre>

<p>If I do following it's OK.  If everything  localized in a function then its OK. Why?</p>

<pre><code>-(void) func1
{
alert= [[UIAlertView alloc] initWithTitle:nil message:@"To Confirm." delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert show];
[alert release];
}
</code></pre>
