logo
down
shadow

Tap Gesture to Hide Navigation Bar, Tab Bar, and Status Bar


Tap Gesture to Hide Navigation Bar, Tab Bar, and Status Bar

By : muqbel
Date : November 26 2020, 01:01 AM
I think the issue was by ths following , First of all, your status bar never unhides because you never tell it to. As written your code merely tells the status bar to hide every time it is executed.
code :


Share : facebook icon twitter icon
Hide and show navigation bar with tap gesture

Hide and show navigation bar with tap gesture


By : Ian Vergith
Date : March 29 2020, 07:55 AM
wish helps you , Do you wish something like that?
code :
- (void)viewDidLoad
{
    [super viewDidLoad];

    self.navigationController.navigationBar.translucent = YES;
                             self.wantsFullScreenLayout = YES;

    UITapGestureRecognizer *tap = [[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(hideShowNavigation)] autorelease];
    tap.numberOfTapsRequired = 1;
    [self.view addGestureRecognizer:tap];
}

- (void) hideShowNavigation
{
    [self.navigationController setNavigationBarHidden:!self.navigationController.navigationBarHidden];
}
I've hidden the navigation bar and the status bar, now the screen edge pan gesture to go back won't work, is this typica

I've hidden the navigation bar and the status bar, now the screen edge pan gesture to go back won't work, is this typica


By : Andras Timar
Date : March 29 2020, 07:55 AM
Hope this helps I'm curious, if I set the navigationBar to hidden, and also hide the status bar, my view controller no longer responds to the screen edge gesture to pop the view controller.
code :
[self.navigationController.navigationBar setHidden:YES];<--doesn't remove pop gesture

[self.navigationController setNavigationBarHidden:YES];<-- disables pop gesture
[self.navigationController.navigationBar setHidden:NO];
Enable edge swipe gesture of UiNavigationController but hide navigation bar

Enable edge swipe gesture of UiNavigationController but hide navigation bar


By : Karolis
Date : March 29 2020, 07:55 AM
Hope that helps One way to solve this is from Storyboard:
1. Select UINavigationController, In "Attribute Inspector", tick "Shows Navigation Bar".
Hide navigation bar without losing swipe back gesture in SwiftUI

Hide navigation bar without losing swipe back gesture in SwiftUI


By : user3623713
Date : March 29 2020, 07:55 AM
This might help you In SwiftUI, whenever the navigation bar is hidden, the swipe to go back gesture is disabled as well. , This should work by just extending UINavigationController.
code :
extension UINavigationController: UIGestureRecognizerDelegate {
    override open func viewDidLoad() {
        super.viewDidLoad()
        interactivePopGestureRecognizer?.delegate = self
    }

    public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
        return viewControllers.count > 1
    }
}
How can I show/hide the status bar on a pageViewController using tap gesture (iOS8 / Swift)

How can I show/hide the status bar on a pageViewController using tap gesture (iOS8 / Swift)


By : JohnDoe
Date : March 29 2020, 07:55 AM
Hope that helps I have tried it in code, everything works fine for me. Make sure that the View controller-based status bar appearance is Set to NO. And there is no needs to override prefersStatusBarHidden().
Related Posts Related Posts :
  • Unclear about releasing CFDictionaryRef
  • CordovaError: Promise rejected with non-error: Error code 65
  • How to append NSMutable strings into a UILabel
  • CustomCell label value does not change
  • Display ad in iAd Bannerview iAd Network
  • Warning: "Could not get traitsetID for iPhone11,6" (Assets.xcassets)
  • Changing root view controller after iOS app has loaded.
  • SocketRocket and iOS certificate pinning
  • Draggable UIButton Snap To a Circle Path
  • Running FireBase in the background
  • resizing UIPopoverController to fit UITableController
  • UICollectionView Exception Crash
  • targeting iOS5 - will it work on iOS6 also?
  • FBLoginView get email
  • Scale UIImages height to UIImageView height
  • Creating a custom progress indicator in ios
  • NSRunLoop API difference
  • Is it possible to inject custom settings into my iOS application "Notifications" settings dialog?
  • UIAlertview not accepting string as message
  • Axis change of stackView giving layout error
  • How to use AVAssetResourceLoader?
  • How to write block definition using properties?
  • iOS connect/reconnect to Bluetooth device when using external-accessory and MFi
  • Saving XMPP Multi User chat messages through XMPP MessageArchiving in iOS
  • Deciding iOS version: pros and cons
  • iOS: Resigned app cannot access keychain through security API
  • How can I set To and Subject fields in an E-Mail being sent by UIDocumentInteractionController?
  • Updating uilabel in view controller underneath another
  • Maximum time Intervel for NSTimer
  • Delete Core Data Entry from Table View Controller
  • How to unload UIViewcontroller from memory?
  • Compressing UIImage as Far as Possible?
  • Optimizing workflow to update internally owned cocoapods dependencies?
  • Formatting an NSDate with Abbreviated Month/Day Names
  • I'm creating a quiz game with 4 answers and I want to add score
  • FBSessionStateClosedLoginFailed when I am logged in through Settings
  • CGRect positioning according to center point
  • iOS: Update table view datasource with animations without core data
  • iOS : Where to start for AliPay integration?
  • Routing App Coverage File missing but not needed?
  • Drawing on a zoomable view
  • Append NSStrings and NSNumber to NSMutableArrays and make NSMutable dictionary
  • Terminating app due to uncaught exception 'NSRangeException' when calling dequeueReusableCellWithReuseIdentifier:forInde
  • Collision without physics (Cocos2D + Box2D iOS)
  • Creating a percentage based iOS layout
  • Update tableView row from AppDelegate Swift 4
  • Assigning return value of a class method to a variable error
  • how to display circular progress in delphi ios apps?
  • I can't figure how to fix this Expected identifier or '('
  • How to Test APIs in Swift 4?
  • Link error /Build/Products/Debug-iphonesimulator file not found
  • working with a very large JSON object in iOS
  • Turn off part of the iPhone Screen
  • Phonegap 3.0 app with facebook login using xCode
  • How to add interstitial admob ads to my ios project
  • adding tapku calendar to ios app
  • Add an alertcontroller in a global swift file?
  • Take square image with Cordova (Phonegap) Camera API?
  • Amazon S3 policy allowing only upload not overwrite
  • How to change the UILabel content by tapping?
  • shadow
    Privacy Policy - Terms - Contact Us © ourworld-yourmove.org