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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 08-12-2008, 01:29 PM   #1 (permalink)
BostonMerlin
Lost in a sea of code
 
BostonMerlin's Avatar
 
Join Date: Apr 2008
Location: Boston
Posts: 399
Default Tab Bar Controller - Navigation Controller - TableView

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
__________________
----------------------------------------------------------------------
I love being a dad, flying airplanes and writing code.
----------------------------------------------------------------------
Follow me on Twitter: @BostonMerlin
Feed your brain on Twitter: @iPhoneDev101
----------------------------------------------------------------------
iPhone Apps:
BostonMerlin is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,819
Threads: 89,206
Posts: 380,632
Top Poster: BrianSlick (7,129)
Welcome to our newest member, rocel1234
Powered by vBadvanced CMPS v3.1.0

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