Having a UITextField in a UITableViewCell
I'm making a fill-out form (First name, Middle Init, Last Name) using table views and want to embed text fields in some of my cells. I see a lot of examples on adding a UITextField inside a UITableViewCell, like the one above. However ALL of them have hard-coded values for the text field's frame, like this
UITextField *playerTextField = [[UITextField alloc] initWithFrame:CGRectMake(110, 10, 185, 30)];
I want my text field to use the cell's frame or bounds.
To make things more interesting, my table view has four sections, and only section 1, which has 3 rows, will have text fields embedded.
To make things even more interesting, I use a popup controller to present my form.
So how can I embed my text field to fit properly inside my table view cells without using hard-coded values when setting its frame or bounds?
Thanks!