how validate textfield
<p>i am new iphone developer please help to me,in my App i take one textfield for email and another one for username and button,write code under button event after enter data click button display another view,my problem is  write code for email validation(aaa@gmail.com in this formate) these alert view is display when button click (msg-enter correct email formate) but i want display these alert move to next textfiled suppose i entered email in wrong formate and movie to next field it username textfiled at that time email alert view will display,please help to me</p>
