Hi,
I've an application using a tabbar.
In one of the view, a click on a button load another view (with a flip transition) but the new view hide the tabbar and I can't figure out how to keep the tabbar visible !
FirstView : view linked to the tabbar bar item
My FirstViewController.h
Code:
@class EstimateResultViewController;
@interface FirstViewController : UIViewController <UITextFieldDelegate> {
EstimateResultViewController *evController;
UINavigationController *estimateNavigationController;
}
@property (nonatomic, copy) EstimateResultViewController *evController;
@property (nonatomic, retain) UINavigationController *estimateNavigationController;
- (IBAction) estimateSize:(id)sender;
@end
My FirstViewController.m
Code:
#import "EstimateResultViewController.h"
@implementation FirstViewController
@synthesize evController, estimateNavigationController;
- (void)viewDidLoad {
[super viewDidLoad];
// Load view controller
if(evController == nil)
evController = [[EstimateResultViewController alloc] initWithNibName:@"EstimateResult" bundle:nil];
// Hide navigation bar
[self.navigationController setNavigationBarHidden:YES animated:NO];
}
- (IBAction) estimateSize:(id)sender {
// Navigation logic -- create and push a new view controller
if(estimateNavigationController == nil)
estimateNavigationController = [[UINavigationController alloc] initWithRootViewController:evController];
estimateNavigationController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self.navigationController presentModalViewController:estimateNavigationController animated:YES];
}
(...)
@end
And in EstimateResultViewController (the second view that hide the tabbar while it should'nt), I do nothing special.
Any help is appreciated