0

I have a custom UITableViewCell and a table view. UITableViewCell has UITextView in it. editable is already set to true. But I cannot edit it.

Blue canvas is TextView and Purple canvas is UITableCellContentView.

enter image description here

Where am I wrong?

UPDATE:

I found my solution here: iOS9 - UITableViewCellContentView is covering up Controls inside Cell

I made cell.contentView.userInteractionEnabled = NO;

and it works fine now. Thank you.

Community
  • 1
  • 1
Burak
  • 5,706
  • 20
  • 70
  • 110

1 Answers1

0

In addition to making the MessageBox setEditable and setUserInteractionEnabled, you ALSO have to make sure those properties are enabled in your UITableViewController as well since the UITextView is nested within it!

tableView.userInteractionEnabled = true
cell.userInteractionEnabled = true
MessageBox.isEditable = true
MessageBox.userInteractionEnabled = true
Sreejith S
  • 376
  • 2
  • 12