terça-feira, 2 de novembro de 2010

Como programar para iPhone #12

Olá pessoal. Neste capítulo vou aproveitar a dúvida do meu amigo Herbert Moraes  sobre Tab Bar e apresentar um tutorial de como manipular este componente. Espero que gostem.

Manipulando Tab Bar



SOURCE
TesteBarraAppDelegate.h

//
//  TesteBarraAppDelegate.h
//  TesteBarra
//
//  Created by Luís Cláudio on 26/07/09.
//  Copyright __MyCompanyName__ 2009. All rights reserved.
//
#import
@interface TesteBarraAppDelegate : NSObject {
UIWindow *window;
IBOutlet UITabBarController *meuTabBarController;
}

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

TesteBarraAppDelegate.m

//
//  TesteBarraAppDelegate.m
//  TesteBarra
//
//  Created by Luís Cláudio on 26/07/09.
//  Copyright __MyCompanyName__ 2009. All rights reserved.
//
#import “TesteBarraAppDelegate.h”
@implementation TesteBarraAppDelegate
@synthesize window;
@synthesize  meuTabBarController;
- (void)applicationDidFinishLaunching:(UIApplication *)application {
// Override point for customization after application launch
[window addSubview:[meuTabBarController view]];
[window makeKeyAndVisible];
}
- (void)dealloc {
[meuTabBarController release];
[window release];
[super dealloc];
}
@end

Autor: webclaudio.wordpress.com

0 comentários:

Postar um comentário

 

Related Posts with Thumbnails