Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 04-15-2010, 05:12 PM   #1 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 1
Gazing is on a distinguished road
Default Beginner - UITableView

Hi,

I'm at the beginner level. I found some tutorials about the UITableView but I couldn't find what I want to learn.

Imagine that you have a ViewController. In it there is also a UITableView which is named "list". I want to add items to list in the ViewController.

I mean something like this:[list addItem....]

How can I do this? Thanks for your replies.
Gazing is offline   Reply With Quote
Old 04-15-2010, 08:03 PM   #2 (permalink)
Registered Member
 
DenVog's Avatar
 
Join Date: Jan 2009
Location: Silicon Valley, USA
Posts: 624
DenVog is on a distinguished road
Default

Quote:
Originally Posted by Gazing View Post
Hi,

I'm at the beginner level. I found some tutorials about the UITableView but I couldn't find what I want to learn.

Imagine that you have a ViewController. In it there is also a UITableView which is named "list". I want to add items to list in the ViewController.

I mean something like this:[list addItem....]

How can I do this? Thanks for your replies.
Go have a look at the Beginning iPhone Development site. It's a great book for beginners, and has chapters covering tables and navigation controllers. Even if you don't pick up the book, you can download source code from the chapters if you register for their forum.
DenVog is offline   Reply With Quote
Old 04-16-2010, 08:55 AM   #3 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 26
ugur is on a distinguished road
Default

Declare your view controller as a UITableViewDelegate and set the table view's delegate to that controller. Then, table view delegate methods will help you.

For example:

- (UITableViewCell *)tableViewUITableView*)tableView cellForRowAtIndexPathNSIndexPath *)indexPath

forms the cells. You should try looking at some examples for a better understanding.
ugur is offline   Reply With Quote
Reply

Bookmarks

Tags
beginner, noob, uitableview, viewcontroller

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 318
16 members and 302 guests
chemistry, Domele, Duncan C, Fstuff, givensur, heshiming, HowEver, iAppDeveloper, iphonedevshani, jbro, JoeRCruso, kapps11, newDev, SLIC, stanny, WheyLabs
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,648
Threads: 94,112
Posts: 402,874
Top Poster: BrianSlick (7,990)
Welcome to our newest member, brandon6031
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:27 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0