简体   繁体   中英

How do I stop the navbar from disappearing when I click the back button on iOS using Ionic 2?

I'm creating a simple Ionic starter and I'm having some issues with the navbar. Whenever I access a list item and go back to the list, the navbar disappears during the animation. This only happens on iOS as the animation is different on Android. You can see the animation in the GIF below.

I'm using ionic-angular 3.0.1 and Angular 4.0.0.

在此处输入图片说明

Do you have any idea how to solve this issue?

I figured out the issue. I used the class 'header' to set the background. This class is shared on iOS in navbar, which caused it to change during the animation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM