I can't understand why this is expected.
I think you don't really understand the problem.
I'have 1 navigationView with 2 views in it.
I put logs into show and hide methods of the second view.
I'm on the firstView all seems to be OK.
I clic on a button to push the secondView with that code in my FirstController (Controller of View 1) :
Code:
this.getMainView().push(this.mySecondView())
1/
At this moment i have this log from my SecondController (Controller of View 2) :
Code:
[SecondController][hide]
[SecondController][show]
First little problem :
I'ts a bit strange, why did you send an hide event for a view that never appear before ?. if no one need to catch it maybe this event need to be "hidden" to user of sencha touch. I see that like an internal process and we should not receive it. However the big problem is not here.
2/ by pushing the second view, a back button appeared in the navigation bar. if i clic on it i have this log
Code:
[SecondController][hide]
[SecondController][show]
Why, if the secondView will be hidden, you send a show event. It does not make sense.
In my case i want a right button in my navigation view only in the firstView and not in the second.
I use something like that in my SecondController :
Code:
show : function (){
this.getMyRightButton().setHidden(true);
}
hide : function (){
this.getMyRightButton().setHidden(false);
}
With "myRightButton" a ref to the button in the navigation bar.
In iOS, viewWillAppear is never called when the view disappear, and it's normal.
3/ In Sencha 2.0.0 this problem does not exist, it's only in the 2.0.1.1
If you want i can post a code to reproduce that bug.
thanks by advance,
Benjamin