Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 15, 2008, 08:54 PM   #1
gryym
macrumors newbie
 
Join Date: Jul 2008
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!
gryym is offline   0 Reply With Quote
Old Jul 16, 2008, 08:15 AM   #2
white89gt
macrumors regular
 
Join Date: Jan 2006
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.
white89gt is offline   0 Reply With Quote
Old Jul 20, 2008, 05:51 AM   #3
gryym
Thread Starter
macrumors newbie
 
Join Date: Jul 2008
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.

=)
gryym is offline   0 Reply With Quote
Old Jul 22, 2008, 08:28 PM   #4
iphonearticles
Banned
 
Join Date: Jul 2008
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
iphonearticles is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC