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 06-13-2008, 07:33 AM   #1 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 53
turinreza is an unknown quantity at this point
Default IB for tableviews

i want a table in one of my views with other elements in the view like buttons, labels, etc

if you create a file owner of a class that subclass UITableViewController
all it shows is it's tableView and nothign else..

if you create a view with a tableview in it and have a subclass of UIViewController with this
view as the view there seems to be no way to populate that tableview in your view

am i missing somethign?
sigh
turinreza is offline   Reply With Quote
Old 06-13-2008, 02:05 PM   #2 (permalink)
New Member
 
Join Date: Jun 2008
Posts: 1
stephone is an unknown quantity at this point
Default Re: IB for tableviews

Your class should implement the UITableViewDataSource Protocol

ie, declare your class:

Code:
@interface myViewController : UIViewController <UITableViewDataSource>
{
}
Then your class will receive tableView:cellForRowAtIndexPath: etc...

Stephan
stephone is offline   Reply With Quote
Old 06-13-2008, 03:46 PM   #3 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 53
turinreza is an unknown quantity at this point
Default Re: IB for tableviews

great!
i'll give it a try
thanks

Quote:
Originally Posted by stephone
Your class should implement the UITableViewDataSource Protocol

ie, declare your class:

Code:
@interface myViewController : UIViewController <UITableViewDataSource>
{
}
Then your class will receive tableView:cellForRowAtIndexPath: etc...

Stephan
turinreza is offline   Reply With Quote
Old 07-19-2008, 12:43 PM   #4 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 14
SioSae is on a distinguished road
Default

Hi there,

i'm also trying to add a tableview as subview to a certain view. all examples show a table as "fullscreen-view" and i just didn't get it done placing a table inside my view with other elements like buttons etc.

i have a certain tableviewcontroller like the examples, a small view with this tableviewcontroller as file's owner and added this view to my main view.

how can i get it done? i have to admit, that i didn't get it, what you mean in your comments. any help would be really great.

best regards,
Silvio
SioSae is offline   Reply With Quote
Reply

Bookmarks

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help With TableViews CoffeeKid iPhone SDK Development 15 11-10-2008 10:59 AM
Data lost between tableviews martinn iPhone SDK Development 5 06-16-2008 11:52 AM
This seems like a dumb question(about TableViews) jonc iPhone SDK Development 1 04-29-2008 02:12 PM


» Advertisements
» Online Users: 333
3 members and 330 guests
guusleijsten, Kryckter, LEARN2MAKE
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,113
Posts: 402,880
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

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