I created a text field in iOS and I want the keyboard to pop out every time I open it. I tried the following code in .swift file:
@IBOutlet weak var messageTextview: UITextView!
override func viewDidLoad() {
super.viewDidLoad()
self.messageTextview.becomeFirstResponder()
}
However, the keyboard didn't show. Can someone please help me with it?