How would I create a UITableView similar to the Add Contact or Add Event ones within a Modal View?
I know how to create my Modal View and put a UITableView in it, but how would I create the grouped editable cells, the add photo button etc. within a UITableView?
I’m assuming what is in the Add Contact Modal View is indeed a UITableView, if not, how would I recreate this anyway with my custom fields for input?
Thanks.
I finally figured out how to do this with help from saadnib. Thanks!
I created custom UITableViewCells in the same xib as the TableView and assigned them as IBOutlets in the classes @interface.
Then in tableView:cellForRowAtIndexPath: I just checked the row and returned the correct cell in the order I wanted them in since what I was trying to do just required static table cells.
I had tried to do this countless times before without it working, this was because the cells I was trying to return were null because the class didn’t know where they were because they hadn’t been loaded into memory from the nib file. Thus, adding this line of code in viewDidLoad: was necessary.
Everything seems to work fine now, thanks for your help.