warning: 'UIAlertView' may not respond to '-addTextFieldWithValue:label:'
<p>in my application i was using UIAlertView for login, it contains TextFields, its working perfectly, but i'm getting a warning when i compile the code, i'm using iphone SDK 3.0 </p>

<p>code :</p>

<pre><code>loginAlert = [[UIAlertView alloc] initWithTitle:@"Enter the User Name and Password" message:@"" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Login", nil];

[loginAlert addTextFieldWithValue:appDelegate.userName label:@"UserName"];
</code></pre>

<p>warning: 'UIAlertView' may not respond to '-addTextFieldWithValue:label:'</p>

<p><br/>
<br/></p>

<pre><code>txfUserName = [loginAlert textFieldAtIndex:0];
</code></pre>

<p>warning: 'UIAlertView' may not respond to '-textFieldAtIndex:'</p>
