|
|
#1 |
|
Placing texts on Table instead of label
Hi,
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:@"%@!", nameString]; label.text = greeting; [greeting release]; Is there a similar method or code that i could follow for texts in TableView? Thx! |
|
|
|
0
|
|
|
#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.
|
|
|
|
0
|
|
|
#3 |
|
I see. Alright. Its gonna take me some time to understand it but i know i will get the gist of it soon. Thanks for the help.
=) |
|
|
|
0
|
|
|
#4 |
|
To learn more about how to use table views and table views with a navigation controller, visit this tutorial
http://www.iphonesdkarticles.com/200...-tutorial.html Thanks, iPhone SDK Articles http:/www.iphonesdkarticles.com |
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| 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.






Linear Mode

