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 04-29-2010, 10:23 AM   #4 (permalink)
saba518
Registered Member
 
Join Date: Apr 2010
Location: Banglore, Karnataka, INDIA
Posts: 21
saba518 is on a distinguished road
Default

Quote:
Originally Posted by Newbie09 View Post
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


Hi in IB, connect the delegate and referencing outlets options of tabbar. then ur "Did Select Here" message will be displayed
saba518 is offline   Reply With Quote
 

» Advertisements
» Online Users: 354
14 members and 340 guests
bignoggins, Domele, Duncan C, Farfalo, hacker073, HowEver, ilmman, krisk, mongmo, n00b, Newbie123, Sami Gh, SillyHoney, SuperDietGenius
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,560
Threads: 94,079
Posts: 402,743
Top Poster: BrianSlick (7,990)
Welcome to our newest member, mongmo
Powered by vBadvanced CMPS v3.1.0

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