Home > front end >  Putting a UITextInput and UITextView in a Container or UITableView?
Putting a UITextInput and UITextView in a Container or UITableView?

Time:11-05

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.

enter image description here

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.

CodePudding user response:

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

enter image description here

In the cell, include:

UITextField for Title

UITextView for Notes

And connect to their IBOutlets:

enter image description here

  • Related