views:

19

answers:

0

Hi,

I have two UITextFields and i am using those to search data when the Return key is clicked. The conditions of searching data i have placed on

    -(BOOL)textFieldShouldReturn:(UITextField*)textField
{


     if((textField == SearchText1) && (textField == SearchText2))
    {

        ------
    }
   }

I need both the text from SearchText1 and SearchText2 to perform a Search.

But when i click on the textField1 and the textField2, I am able to get only the textField2 data when i click on the Return Key. Please provide me some solution....