Possible Duplicate:
Email validation on textField in iPhone sdk
I have an app in which I want to get the user's email address as input. I want to check that the user has entered email address properly; like @ should be in the text in the field. How can I do this?
textField.text=@"ali@hotmail.com"
If the text box has this value then OK otherwise it should alert that email address should be correct