Hide Tabbar in objc?

Ask questions and share your skills here

Hide Tabbar in objc?

Postby bernhard_fuchs » Wed Jan 27, 2010 7:22 pm

In order to hide the Tabbar when the navController is invoked, I tried this here in objc:

-(void)navBarHidePushed {
UINavigationController* controller = [[NKBridge sharedInstance] navigationControllerForPage:@"main.html"] ;
controller.hidesBottomBarWhenPushed = YES;
}

This has no effect though. What am I missing?

Thanks in advance,

Bernhard
User avatar
bernhard_fuchs
 
Posts: 7
Joined: Wed Jan 27, 2010 7:06 pm

Re: Hide Tabbar in objc?

Postby sunny » Wed Jan 27, 2010 8:52 pm

can you send sample project to sunny@nimblekit.com ? I'll check what is wrong and give you solution.
User avatar
sunny
Staff
 
Posts: 1786
Joined: Sat May 30, 2009 5:18 am
Location: kiev, Ukraine

Re: Hide Tabbar in objc?

Postby bernhard_fuchs » Sun Feb 07, 2010 3:38 pm

Thanks for the all the help and sorry for the e-mail confusion. As you suggested I tried to solve the hiding by destroying the tabbar. Unfortunately I cannot recreate it, as the pageshown event is not triggered when returning from a subview via the navcontroller back mechanism the first time. Subsequent calls it is triggered. This is a bit confusing.
User avatar
bernhard_fuchs
 
Posts: 7
Joined: Wed Jan 27, 2010 7:06 pm

Re: Hide Tabbar in objc?

Postby sunny » Sun Feb 07, 2010 3:43 pm

I'll check onpageShown and fix
User avatar
sunny
Staff
 
Posts: 1786
Joined: Sat May 30, 2009 5:18 am
Location: kiev, Ukraine

Re: Hide Tabbar in objc?

Postby raf69 » Wed Jun 30, 2010 2:05 pm

Hi,

I want to hide the Tabbar too ... I tried to use the function onPageShown(caller) with the destroy() method but I didn't success.

So, I've got my main.html page where there is a TableView (css style). The user clicks on a row, he can read the news, but before I destroyed the Tabbar. He can go to the previous page (main.html) with the Navigation Controller but the function onPageShown is not called... so i can't recreate the Tabbar :( (I don't want to refresh all the page all the time)

Somebody have an other solution ? mix obj-c/javascript ?

Thanks !
raf69
 
Posts: 15
Joined: Tue Jun 29, 2010 10:23 am

Re: Hide Tabbar in objc?

Postby sunny » Wed Jun 30, 2010 2:30 pm

make a sample project, I'll see what's wrong and fix
User avatar
sunny
Staff
 
Posts: 1786
Joined: Sat May 30, 2009 5:18 am
Location: kiev, Ukraine

Re: Hide Tabbar in objc?

Postby raf69 » Wed Jun 30, 2010 3:32 pm

I sent you an email Sunny to sunny@nimblekit.com. Thank you for your help !
raf69
 
Posts: 15
Joined: Tue Jun 29, 2010 10:23 am

Re: Hide Tabbar in objc?

Postby raf69 » Tue Jul 06, 2010 9:57 am

up ! :)
raf69
 
Posts: 15
Joined: Tue Jun 29, 2010 10:23 am

Re: Hide Tabbar in objc?

Postby sunny » Tue Jul 06, 2010 11:43 am

I haven't receive anything, I just searched all the mail boxes with the e-mail address you registered on this forum
User avatar
sunny
Staff
 
Posts: 1786
Joined: Sat May 30, 2009 5:18 am
Location: kiev, Ukraine

Re: Hide Tabbar in objc?

Postby raf69 » Thu Jul 08, 2010 12:16 pm

I sent you the project again Sunny ! Tell me if you find it. Thank you.
raf69
 
Posts: 15
Joined: Tue Jun 29, 2010 10:23 am

Next

Return to How To...

Who is online

Users browsing this forum: No registered users and 1 guest