Keyboard Resets View to Storyboard Position

Hi there. I have a button that sets the position of a view that has a text field inside it. When I tap on the text field, it resets the view back to what it was before it got moved.


This is the only code I have:


-(IBAction) OpenLogin {

[LoginView setFrame:CGRectMake(0, 0, LoginView.frame.size.width, LoginView.frame.size.height)];

}

Are there any auto layout constraints on that view?

Keyboard Resets View to Storyboard Position
 
 
Q