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

View Single Post
Old 03-28-2010, 09:19 PM   #323 (permalink)
ikvarma
Registered Member
 
Join Date: Mar 2010
Posts: 1
ikvarma is on a distinguished road
Default Can you explain

Hey can you explain me with code a little bit about how you solved your problem with using table view inside a tab bar ?

Thanks in advance

Quote:
Originally Posted by BostonMerlin View Post
I am having a bear of a time getting this to work. I've looked at it so many ways and followed tutorials on how to set each of the controllers separately but none show how to combine them all.

super simple bare bones sample

- create new Tab Bar Application
- create a new FirstScreenViewController .h and .m class
- add the appropriate TableView methods (as explained in other articles)
- Create a new FirstScreen.xib with a UIView
- Drop a TableView onto the View
- set the files owner to point to FirstScreenViewController
- Save to project
- load up MainWindow.xib
- set the first tab to be a Navigation Controller
- set the first tabs xib to point to the FirstScreen.xib file

Save and run. I see a TabBar window with two buttons. the first button has a navigation controller toolbar up top and i can see the outlines of an empty Table View. Looks great so far.

Load up my FirstScreenViewController.xib file. Connect the view, tableview datasource and tableview delegate to point over to the Files Owner. Save

Run the project, hangs for a second then dumps me back to xcdoe with an unhandled error. Take out the datasource and delegate connections and i'm back to see a blank tableview.

Any Ideas? I know this is a long winded desription.. sorry. I'm able to create a single page application with a tableview with no problem but when i dump this into a tabbar controller it craps out.

if you have any ideas please show me the light!

Thanks
John
ikvarma is offline   Reply With Quote
 

» Advertisements
» Online Users: 305
14 members and 291 guests
brainspoon, Gary OBrien, HemiMG, jbro, JMLdev, matador1978, m_rozzi, Newbie123, Objective Zero, PavelSea, RickSDK, spiderguy84, zulemamn37
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,553
Threads: 94,078
Posts: 402,734
Top Poster: BrianSlick (7,990)
Welcome to our newest member, zulemamn37
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:44 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.