I have this layout shown in the picture below:
I have this code to move the Email Address
textfield up when the keyboard pops up:
- (void)textFieldDidBeginEditing:(UITextField *)textField {
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDelegate:self];
[UIView setAnimationDuration:0.5];
[UIView setAnimationBeginsFromCurrentState:YES];
textfield1.frame = CGRectMake(textfield1.frame.origin.x, (textfield1.frame.origin.y - 100.0), textfield1.frame.size.width, textfield1.frame.size.height);
[UIView commitAnimations];
}
The only problem is when I move the textfield up like this it covers the Email Login / Sign Up
Label right above it. Is there any way I can move the Email Address
textfield up without covering that label? Or do I have to move every single view (such as the label) that is above that Email Address
textfield up as well?