Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to hide tabbar and navigationbar when tapped on the view
    primarykey
    data
    text
    <p>I was building an articles based application,i am having tab bar and navigation bar in my application.What i want to do is while my article is displaying when i tap on that view,the tabbar and navigationbar should hide and viceversa. Please help me in this</p> <p>Thanks for the responses,Finally i have used gesture method </p> <pre><code>UITapGestureRecognizer *doubleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleDoubleTap)]; doubleTap.numberOfTapsRequired =1; [scrollView addGestureRecognizer:doubleTap]; [doubleTap release]; - (void)handleDoubleTap { NSLog(@"Single tap"); if(firstTime) { [UIView beginAnimations: @"moveField"context: nil]; [UIView setAnimationDelegate: self]; [UIView setAnimationDuration: 0]; [UIView setAnimationCurve: UIViewAnimationCurveEaseInOut]; [self.navigationController setNavigationBarHidden:YES animated:YES]; scrollView.frame = CGRectMake(0,0,320,460.0f); tabBar.hidden=YES; [self.view bringSubviewToFront:scrollView]; [UIView commitAnimations]; firstTime=NO; } else { [UIView beginAnimations: @"moveField"context: nil]; [UIView setAnimationDelegate: self]; [UIView setAnimationDuration: 0]; [UIView setAnimationCurve: UIViewAnimationCurveEaseInOut]; //[self.view bringSubviewToFront:scrollView]; [self.navigationController setNavigationBarHidden:NO animated:YES]; scrollView.frame = CGRectMake(0.0, 0.0, 320, 372); tabBar.hidden=NO; [UIView commitAnimations]; firstTime=YES; } </code></pre> <p>Now iam getting this when i tap on the screen...Is it possible to hide the tabbar and navigationbar wheni scroll the view and vice versa....Please help me in this</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload