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

Reply
 
LinkBack Thread Tools Display Modes
Old 10-13-2010, 03:43 PM   #1 (permalink)
Registered Member
 
geeo's Avatar
 
Join Date: Nov 2009
Posts: 30
geeo is on a distinguished road
Default Pushed UIView hide tabbar !

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
geeo is offline   Reply With Quote
Old 10-14-2010, 01:30 PM   #2 (permalink)
Registered Member
 
geeo's Avatar
 
Join Date: Nov 2009
Posts: 30
geeo is on a distinguished road
Default

No one ?
geeo is offline   Reply With Quote
Old 10-14-2010, 02:46 PM   #3 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

Modal view controllers sit over everything, so if you still want to see the tab bar, you really can't do that. You will need to choose an alternative, such as using a navigation controller.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 10-14-2010, 02:56 PM   #4 (permalink)
Registered Member
 
geeo's Avatar
 
Join Date: Nov 2009
Posts: 30
geeo is on a distinguished road
Default

Using pushViewController for example ?

[self.navigationController pushViewController:sdvController animated:YES];

And is it possible to add an horizontal flip effect to it ?
geeo is offline   Reply With Quote
Old 10-14-2010, 02:57 PM   #5 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

Not automatically. You would have to do something manually.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 10-14-2010, 03:13 PM   #6 (permalink)
Registered Member
 
geeo's Avatar
 
Join Date: Nov 2009
Posts: 30
geeo is on a distinguished road
Default

I have already a navigation controller in the xib, have else something else to do manually ?

Last edited by geeo; 10-14-2010 at 03:20 PM.
geeo is offline   Reply With Quote
Old 10-14-2010, 03:33 PM   #7 (permalink)
Registered Member
 
geeo's Avatar
 
Join Date: Nov 2009
Posts: 30
geeo is on a distinguished road
Default

Ok I get it work

Code:
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration: 1];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:YES];
[self.navigationController pushViewController:myViewController animated:NO];
[UIView commitAnimations];
Thanks for help
geeo is offline   Reply With Quote
Reply

Bookmarks

Tags
tabbar, uiview

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 348
7 members and 341 guests
Desert Diva, dre, hain, HemiMG, lendo, mottdog, oceanlablight
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,895
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

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