Hello,
I'm trying to acheive something like this..
I have a one SQLite table that has list of drinks. The tab bar application will have 3 tabs. Cold, Coffee, Tea. I do not want to load all the data when the app launches. I just want to select only the data corresponding to the Tab. For, eg. if somebody selects "Cold" tab, I would like to populate a Tableview with the data from the table that corresponds to "Cold" drinks
What is the best way to do?
This is what I was trying to do
I'm new to iPhone SDK and ObjC. I created a new Project (Tab Bar Application), Removed "SecondView.nib" (Created by defaulted) Added 2 Tab Bar Items.
I want to find out which Tab Bar item was selected.
In Interface builder, I linked the "Tab Bar" delegate (Clicked on Tab bar in MainWindow.xib) "Tab Bar Test App Delegate". When I click on different tabs, I don't see the text in the log. I have no clue what is going on. Any help in the regard is much appreciated
Why don't you just create 3 nibs: cold.xib, tea.xib and so on, make separate UITableViewController Classes, set the right class to the right .xib in IB and connect the view of a tab bar item with the right xib?
Why don't you just create 3 nibs: cold.xib, tea.xib and so on, make separate UITableViewController Classes, set the right class to the right .xib in IB and connect the view of a tab bar item with the right xib?
Thanks Danilkazzz. Will the memory size of the App be more if I created 3 Nibs? I thought acheiving this with one MainWindow.xib will save memory. Also, there is only one SQL table. Do you still think that is the best way to do it?
Hello,
I'm trying to acheive something like this..
I have a one SQLite table that has list of drinks. The tab bar application will have 3 tabs. Cold, Coffee, Tea. I do not want to load all the data when the app launches. I just want to select only the data corresponding to the Tab. For, eg. if somebody selects "Cold" tab, I would like to populate a Tableview with the data from the table that corresponds to "Cold" drinks
What is the best way to do?
This is what I was trying to do
I'm new to iPhone SDK and ObjC. I created a new Project (Tab Bar Application), Removed "SecondView.nib" (Created by defaulted) Added 2 Tab Bar Items.
I want to find out which Tab Bar item was selected.
In Interface builder, I linked the "Tab Bar" delegate (Clicked on Tab bar in MainWindow.xib) "Tab Bar Test App Delegate". When I click on different tabs, I don't see the text in the log. I have no clue what is going on. Any help in the regard is much appreciated
Thanks
Hi in IB, connect the delegate and referencing outlets options of tabbar. then ur "Did Select Here" message will be displayed
Hi in IB, connect the delegate and referencing outlets options of tabbar. then ur "Did Select Here" message will be displayed
Hi mate, In the delegate file, I create two tabbar items, and connect each of them to the nib items, and did the UITablebarDelegate, and implement the didselect method,