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.
Code:
@interface TabBarTestAppDelegate : NSObject <UIApplicationDelegate, UITabBarControllerDelegate, UITabBarDelegate>
in implementation
@implementation TabBarTestAppDelegate
- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item{
NSLog(@"Did Select Here");
}
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