- (void)textFieldDidBeginEditing:(UITextField *)textField
{
#define kOFFSET_FOR_KEYBOARD 110.0
textField.frame.origin.y -= kOFFSET_FOR_KEYBOARD;
textField.frame.size.height += kOFFSET_FOR_KEYBOARD;
textField.frame = CGRectMake(textField.frame.origin.x, (textField.frame.origin.y - 230.0), textField.frame.size.width, textField.frame.size.height);
}
Got this code for my textField app in iOS... I plan to have it in a way that, when the keyboard appears, the textfield goes up just on top of the keyboard and when the return key in the keyboard is pressed, the textfield goes back to its original position which is at the bottom of the screen. But I get this error, "Expression is not assignable." How do I solve this? What does the error mean?