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.
SOURCE
//
// 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
// 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
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


15:11
Marcell C. Ribeiro



















0 comentários:
Postar um comentário