Issue NavigationButton cannot be hiden
See original GitHub issueHello guys Im having issue, Im not been able to hide NavigationButton on IOS I working on Mac and runing emulator with Iphone also tested with Iphone 6 Seems like Navigation Button cannot be hidden
Did you verify this is a real problem by searching the [NativeScript Forum]
Yes
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
- CLI:3.3
Please tell us how to recreate the issue in as much detail as possible.
The best approach would be to get your code running in the NativeScript Playground and share the link with us, along with any additional details or steps to reproduce needed for examining the issue there.
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
Yes I have My Header wher is my action bar that I use across my app: header.xml
<ActionBar class="action-bar" title="" loaded="Loaded">
<NavigationButton visibility="collapse"/>
<ActionBar.actionItems>
<ActionItem tap="goToTimeplan">
<ActionItem.actionView>
<StackLayout >
<Label text="" class="action-item gray"/>
</StackLayout>
</ActionItem.actionView>
</ActionItem>
</ActionBar.actionitems>
</ActionBar>
And the use it around my pages
<Page xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:appHeader="/views/header/" loaded="loaded">
<appHeader:header />
</Page>
I have also tried with collapsed and adding class or putting it in StackLayout to Hide but Nothing works… It works that moment , but next time when I stop tns , and again run it with “tns run ios”, its visible…
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (5 by maintainers)
Top Results From Across the Web
Can't hide navigation bar - Android Central Forum
Now, the nav bar is hidden but there are no buttons when I swipe up. It's now using the "no button" nav bar....
Read more >Can no longer hide navigation buttons - OnePlus Community
Since the last update I can no longer hide the navigation buttons on the screen. Anyone else experiencing this? Did they remove it,...
Read more >Navigation bar with back button not hiding - Stack Overflow
I tried using viewDidLoad , viewDidAppear , viewDidUnload (in the sign up view) but nothing works (I can hide the status bar, but...
Read more >Can't disable navigation bar hide button - XDA Forums
Settings-System-System navigation-Virtual navigation bar-Settings, then select one of those 4 options and/or turn ON/OFF the Navigation bar.
Read more >The Navigation Bar Isn't Hidden as Expected in SwiftUI
TL;DR: If you can't tap on buttons in the navigation-bar area, you can jump directly to “4. The Solution” to fix the issue....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I had to hide the back button in iOS, and all of the above didn’t work except for @tsonevn suggestion, which led me to look for the
hidesBackButton
property in the nativescript source code, and then i figured that what works for me is:page.ios.navigationItem.hidesBackButton = true;
(tested in3.4.1
)Hi @Gamadril, You can try creating a NavigationButton via code-behind and then set up the
visibility
. For example:For further question, you can use our StackOverflow thread here.