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
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
|