I am using UITextField\'s method becomeFirstResponder to show the keyboard. This is working in iOS 7. But in iOS 8 this method doesn\'t show the keyboard.
U
Swift 3
Here is the swift 3 version of the accepted answer. For me to get it to work I also had to add a delay.
txtAddNew.perform( #selector(becomeFirstResponder), with: nil, afterDelay: 0.1 )