I am getting UIViewControllerHierarchyInconsistency exception
when assigning,
txtFieldDelegate.view = self.view;
txtFirstName.delegate = txtFieldDelegate;
txtLastName.delegate = txtFieldDelegate;
I am having text field delegate methods in some other class and creating objects for the text field delegate class to use the same. Please provide suggestions to resolve this..