I want to use a TableView for representing a Username/Password textfields dialog in a nice and grouped view. I figured the best case is to use the TableView and two cells for this.
I kind of got lost in the implementation… Is there any built in cells for this that I am missing?
What you probably want to do is make a custom
UITableViewCellsubclass with properties for the textfield(s) you need. Create the nib file for your new cell type, lay it out as desired. Set the “file’s owner” class to your UITableViewController class, and create a connection from an outlet (say, “newCell”) in the “file’s owner” to your custom cell.Then when you need to create a cell (inside
tableView: cellForRowAtIndexPath:), you can load it from the nib: