Tag Archives: UIScrollView
Scroll UIScrollView to focused UITextField in Swift
I had a screen with multiple textfields embedded in a scrollview. When a textfield became first responder I wanted the textfield to scroll to the top of the view. I will explain the way I used to achieve this below, (there probably are other ways, but this way worked for me). The first thing that […]
Move UITextFields when keyboard opens in iPhone app
While working on my latest app, I was looking for a solution to slide the screen up when the keyboard opens so that text fields aren’t hidden by it. I came across this one: TPKeyboardAvoiding its a very simple drop in component. You copy a couple classes into your existing project, put all your elements into […]