What I'm trying to do should be pretty straight forward from my understanding, yet I seem to be having some trouble with this.
I'm trying to add UITextField to a UITableViewCell in my Storyboard, however it only lets me place the text field as the child of a UIView, with the latter placed in the table view cell.
ie:
UITableViewCell
|__UIView
|__UITextView
I create my IBOutlet in my Swift ViewController and add the following function to have the keyboard appear on touch
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
self.nameTextField.becomeFirstResponder()
}
When I run this though, the cell responds to touch however it's as if the text view is always hidden and never gets enabled or becomeFirstResponder. I'm presuming it has to do with the UIView in the way, however I've been unsuccessful in placing the text view directly inside the table view cell.
If anyone has an idea on what I'm doing wrong, I'd greatly appreciate the help,
Thank you!