Putting a UITextInput and UITextView in a Container or UITableView?

I am creating a to-do list app. I need help or guidance in creating the following UITextInput and UITextView put it into some sort of container to get the rounded corners.

I have tried to create it by implementing a UITableView, creating 2 cells. One with TextInput and one with TextView but it doesn't work, I have a feeling it's a wrong approach or there might be a better way to achieve this.

Any guidance or help would be appreciated.

In UIKit, UITextInput is just a protocol and is not a UI component to put into some container. Are you confused with something else?

If you want to create a Table view:

create a custom cell

  • File > New > File
  • Cocoa Touch Class
  • Give a name, subclass of UITableViewCell and create xib

In the cell, include:

  • UITextField for Title
  • UITextView for Notes

And connect to their IBOutlets:

You will have to register the nib for the cell and proceed with the tableView use… But that may be a question in a new post.

Putting a UITextInput and UITextView in a Container or UITableView?
 
 
Q