Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    4
    Vote Rating
    0
    bfrolicher is on a distinguished road

      0  

    Default Unanswered: NavigationView error after push > pop > push

    Unanswered: NavigationView error after push > pop > push


    Hi,

    In Sencha 2.0.0 we use hide/show event of a view to show or hide button in the navivationBar of a NavigationView. this work great.

    In Sencha 2.0.1.1, i receive show event when my view is hidden !

    Here is the log

    Push a view :
    [CtrlEditor][hide]
    [CtrlEditor][show]

    Pop the view :
    [CtrlEditor][hide]
    [CtrlEditor][show]


    Have you any solution ?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,522
    Answers
    3447
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    This is expected. Try using activate and deactivate instead.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    4
    Vote Rating
    0
    bfrolicher is on a distinguished road

      0  

    Default


    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

Thread Participants: 1

Tags for this Thread