
Hi,
How I can check if UITextfield is blank and then display error to the user?
Thanks

Hi,
Following code can be used to validate the user input in iPhone and iPad applications.
if([loginID.text isEqualToString:@""]) {
UIAlertView* alertView = [[UIAlertView alloc] initWithTitle:@"Field Error"
message:@"Please enter Login ID!" delegate:self
cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alertView show];
[alertView release];
}
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.