After a while research on the internet, I've found that Michael Tyson has built a drop-in solution for such kind of problems. He packs everything that one needs into a class and puts the sources on GitHub.
If you follow the instruction on the Github, the task with UITextField and Keyboard is easy as a cake!
Well done, Michael!
via ATasty Pixel