yeah!
i have written the code inside viewDidLoad method but work properly!!!
my prolblem is that my login button not fire the event and application terminated
UITapGestureRecognizer *gestureRecognizer =[[UITapGestureRecognizer alloc]initWithTarget:self
action:@selector(backgroundTouch)];
[self.view addGestureRecognizer:gestureRecognizer];
this is the my method——————-
-(IBAction)backgroundTouch
{
[txtUserName resignFirstResponder];
[txtPass resignFirstResponder];
}
Check whether you have connected
UItextViews to their instance inxib. and check whether those functions are being called or not by keeping breakpoints in your code.