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 > iPhone SDK Development Forums > iPhone SDK Tutorials

Reply
 
LinkBack Thread Tools Display Modes
Old 12-27-2008, 09:16 PM   #1 (permalink)
Registered Member
 
jamesbrannan's Avatar
 
Join Date: Aug 2008
Location: Gaithersburg, MD
Posts: 178
Default UITabBar Tutorial

Only a UITabBar tutorial. Uses Interface Builder, More button, etc. Nothing major, but shows how using Interface Builder. If you login to vimeo as a member, and find my page, you can download the hi-def version.


Tab Bar Tutorial - Starting with Window-Based Application from James A. Brannan on Vimeo.
jamesbrannan is offline   Reply With Quote
Old 12-30-2008, 04:10 AM   #2 (permalink)
New Member
 
Join Date: Dec 2008
Posts: 1
Send a message via MSN to zeming
Default

good!
Thx
zeming is offline   Reply With Quote
Old 05-17-2009, 04:40 PM   #3 (permalink)
New Member
 
Join Date: May 2009
Posts: 4
Default

helped a lot thanks
swiftmarval is offline   Reply With Quote
Old 09-20-2009, 02:54 PM   #4 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 69
Default

hi... is there a simple way to add a network activity indicator??

im making a tabbar based app with several webviews but when i try to add the indicator it never works out
truehybridx is offline   Reply With Quote
Old 09-20-2009, 09:33 PM   #5 (permalink)
Registered Member
 
jamesbrannan's Avatar
 
Join Date: Aug 2008
Location: Gaithersburg, MD
Posts: 178
Default

Actually, I need more information, using a network activity should be easy

James

Last edited by jamesbrannan; 09-21-2009 at 07:52 AM.
jamesbrannan is offline   Reply With Quote
Old 09-21-2009, 03:13 PM   #6 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 69
Default

Quote:
Originally Posted by jamesbrannan View Post
Actually, I need more information, using a network activity should be easy

James
Well if u want I can post the sources of my first view controller for u to take a look, the other 3 are basically the same

it'll be a few hours from now before I have the chance
truehybridx is offline   Reply With Quote
Old 09-22-2009, 12:18 AM   #7 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 69
Default

Quote:
Originally Posted by truehybridx View Post
Well if u want I can post the sources of my first view controller for u to take a look, the other 3 are basically the same

it'll be a few hours from now before I have the chance
Code:
//First View Controller.h

#import 


@interface FirstViewController : UIViewController  {
	UIWebView *lei;
	UIActivityIndicatorView *activityIndicator;
}
@property(nonatomic,retain) IBOutlet UIWebView *lei;
@property(nonatomic,retain) IBOutlet UIActivityIndicatorView *activityIndicator;

-(IBAction) goBack:(id)sender;
-(IBAction) goRefresh:(id)sender;

@end


//First Vier Controller.m

#import "FirstViewController.h"


@implementation FirstViewController

@synthesize lei, activityIndicator;


-(void)viewDidLoad {
	[super viewDidLoad];
	NSString *urlAddress = @"http://limitededitioniphone.com";
	
	NSURL *url = [NSURL URLWithString:urlAddress];
	NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
	
	[lei loadRequest:requestObj];
	
}

-(IBAction) goBack:(id)sender {
	[lei goBack];
}
-(IBAction) goRefresh:(id)sender {
	NSString *urlAddress = @"http://limitededitioniphone.com";
	
	NSURL *url = [NSURL URLWithString:urlAddress];
	NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
	
	[lei loadRequest:requestObj];
	
}

-(void)webViewDidStartLoad:(UIWebView *)lei {
	[self.activityIndicator startAnimating];
	
}
-(void)webViewDidFinishLoad:(UIWebView *)lei {
	[self.activityIndicator stopAnimating];
	
}


- (void)didReceiveMemoryWarning {
	
    [super didReceiveMemoryWarning];
	
}

- (void)viewDidUnload {

}


- (void)dealloc {
    [super dealloc];
}

@end


//AppDelegate.h

#import 

@interface LeiAppAppDelegate : NSObject  {
    UIWindow *window;
    UITabBarController *tabBarController;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UITabBarController *tabBarController;

@end


//AppDelegate.m

#import "LeiAppAppDelegate.h"


@implementation LeiAppAppDelegate

@synthesize window;
@synthesize tabBarController;


- (void)applicationDidFinishLaunching:(UIApplication *)application {
	sleep(0);
	
    [window addSubview:tabBarController.view];
}


- (void)dealloc {
    [tabBarController release];
    [window release];
    [super dealloc];
}

@end
truehybridx is offline   Reply With Quote
Old 11-05-2009, 02:54 AM   #8 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 10
Default

Brilliant! Thanks
applezinga is offline   Reply With Quote
Old 11-15-2009, 12:31 PM   #9 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 10
Default Difficult implementation on tab view

Absolutely brilliant, thanks a million for sharing. I've followed your instructions and created an application with 2 tab views. Now what I am having problems with is trying to implement a sort of calculator on one of the views. I press the calculate button and simply nothing happens.

I had previously developed this calculator on a single view application (with no tab views) and it was working absolutely fine. Now I have been trying for days to port it to this new interface with 2 tabs but without success.

I am beginning programming for the iPhone OS and there is definitely something I am missing. I guess I'm not linking the text fields and the views correctly or something similar.

Would you be so kind to tell me what I'm doing wrong if I send you the code?
applezinga is offline   Reply With Quote
Old 07-26-2010, 02:44 PM   #10 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 138
Default

Can someone update this for the newest SDK 4 and IOS 4. Got a bunch of errors for the newest software.
rrichar is offline   Reply With Quote
Old 07-26-2010, 10:39 PM   #11 (permalink)
Indie Developer
 
iSDK's Avatar
 
Join Date: Jul 2010
Posts: 1,333
Send a message via AIM to iSDK
Default

chances are it was human error as code should stay the same whether the sdk has been updated or not. What were your errors?
Quote:
Originally Posted by rrichar View Post
Can someone update this for the newest SDK 4 and IOS 4. Got a bunch of errors for the newest software.
iSDK is offline   Reply With Quote
Old 02-25-2011, 08:52 AM   #12 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 1
Question how to put tabbar in top

hello sir i want to develop application having tabbar in top with switching between tabs view please tell me the way i want to create app
hirentank is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 260
22 members and 238 guests
@sandris, AdamL, ADY, Dani77, diyora, FAED, fredidf, F_Bryant, GHuebner, HDshot, JasonR, mer10, Oral B, prchn4christ, Rudy, smithdale87, stekki, tgjorgoski, Thompson22, Touchmint, twerner, vigu360
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,752
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:01 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0