I am very new to iphone application development and am struggling to create a table view page where each row contains a left-aligned label with an editable text next to it – just like how it works in the email account details page in the settings application on my iphone.
I have been googling the subject for hours and it is now somehow clear to me that I need to add UITextFields to UITableViewCells, but it is still not at all clear to me how I make these text fields take up the right amount of space:
- How do I make the text fields align above each other?
- How do I make the text fields expand as far as possible to the right?
- How do I prevent the text fields from hiding part of the left-aligned label?
Read the Apple Docs on Tableviews there are a number of predefined table cells. Also look at the Tableview programming Guide. Pick the one that has the font characteristics that you want and Apple will take care of it for you. Also, in the Settings app, the settings are a Grouped style.
For the look you are describing I think it is called
UITableViewCellStyleSubtitle.