BEFORE READING "iOS 7 OMG DOWNVOTE"
The problem was resolved and not connected at all with iOS 7. The problem was that when you turn on autostart, you cannot directly change the frame, but instead have to edit the restrictions.
So, I have an application that is in the App Store, and I'm typing in UITextField , but some text fields were covered by the keyboard, so I moved them programmatically. Now I am working with beta Xcode and iOS 7, and this functionality has stopped working. Here is my code:
-(void)textFieldDidBeginEditing:(UITextField *)textField{ textFieldRect = textField.frame; textField.frame = CGRectMake(5, 80, self.view.frame.size.width-10, 31); } -(void)textFieldDidEndEditing:(UITextField *)textField{ textField.frame = textFieldRect; }
I check with NSLog for the width of textFieldRect and TextField.frame at the end of textFieldDidBeginEditing: and the values ββare different (as it should be), but there is no visual change. I know that there are other ways to protect the text field from the keyboard, but I would prefer it to work, as I hope to revive it, and I know that there are no reasons why this is not possible.
source share