ios - Textfieldshouldreturn auto scroll screen -
I use the code below It seems that I have 5 eTextFolds for some reason now when I click the next time If the scene was actually scrolled down, I could see the text file that I was writing data from the keyboard. I thought it was the default.
I added a lot of code to the uiview and added the link button to another view. Either way my Uiviv has lost its "auto-scroll-after-the-next-the-pressed" mechanism in the middle of that process, I tried to remove my button and there was a problem in a few hours but the problem was not found.
Not sure I should post the whole class. I found some content about scrolling the screen program by establishing coordinates, in my opinion it is not very viable, the way I "automatically scroll up the way Wanted to know "wanted to know. I found out that when I introduce a new button, I add the viewWillAppear method. That code did not call the super method, so the problem is fixed by adding just 1 line code - (BOOL) textFieldShouldReturn: (UITextField *) textField; {[Textfield Resigns First Responder}; If (textField == self. Fastdown) {[self .secondOne be first responder]; } And if (textField == itself .secondOne) {[become self.thirdOne FirstResponder]; } And if (textField == itself. Third-on) {[self. Forthone First Responder]; } And if (textField == self.forethone) {[self.phththon first responder]; } no return; }
- (zero) viewViewAppear: (BOOL) animated {[Super Viewer app: animated] ; // your code}
Comments
Post a Comment