try changing this:
Quote:
if ([textfield1 length]==0 && [textfield2 length]==0){
//code for uialertview that will tell the user to enter the values
}
|
to this for starters:
Code:
if (textField1.text.length == 0 && textField2.text.length == 0)
{
}
it could be a problem in your alertview, but since no one knows what you have coded there, no one can be of much help.