|Jul 15, 2008, 08:54 PM||#1|
Placing texts on Table instead of label
Instead of using labels to place the typed text in iPhone, i would like to use a TableView (UITableview). A snippet of a code to display texts on label is as follows:
self.string = textField.text;
. . .
. . .
NSString *greeting = [[NSString alloc] initWithFormat:@"%@!",
label.text = greeting;
Is there a similar method or code that i could follow for texts in TableView?
|Jul 16, 2008, 08:15 AM||#2|
UITableViews require delegate methods to display data. There are many delegate methods, but the two that you must implement are the one that tells the table how many rows it has, and the other one is the one that tells the individual cells what to display. It sounds complicated, but it actually makes a lot of sense once you get accustomed to working with objective-c. There are some video tutorials over at iphonedevcentral.org that explain how to work with UITableViews.
|Jul 22, 2008, 08:28 PM||#4|
To learn more about how to use table views and table views with a navigation controller, visit this tutorial
iPhone SDK Articles
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|iPhone Calendar - To start on Sunday instead of Monday||stutzedward||iPhone||17||Jan 29, 2012 01:53 PM|
|Single onClick on Parent instead of on each child?||jschulbach||Web Design and Development||2||Jul 19, 2010 06:33 PM|
|Buying textbooks to use on MBA instead of real textbooks?||Airforcekid||Buying Tips and Advice||17||Nov 7, 2009 02:54 PM|
|How to put web slices on desktop instead of dashboard?||whitefang||Mac Basics and Help||1||Mar 21, 2009 04:56 PM|
|Placing text on video||Millwood||Digital Video||4||Jul 11, 2007 10:13 AM|
All times are GMT -5. The time now is 08:10 AM.