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
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"];
warning: 'UIAlertView' may not respond to '-addTextFieldWithValue:label:'
txfUserName = [loginAlert textFieldAtIndex:0];
warning: 'UIAlertView' may not respond to '-textFieldAtIndex:'
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…