Help Pleasee Help Pleasee - 1 year ago 149
Swift Question

Xcode Textfield Above Sections in TableViewController

I have a TableViewController with two sections and I'm trying to insert a textfield to be above the sections with no success.

Someone knows how can I do it without changing to UIViewController and add UITableView?

my TableViewController:

Answer Source

If you must use a UITableViewController then you can put the text field in its own section containing one row. The text field can be put in that row's table view cell.

You'll need to adjust all of the table view data source and delegate methods to deal with the extra section.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download