Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Removing window from a navigationGroup

Hi,

I'm trying to remove a window from a navigationGroup. The code I'm using is:
news_nav_group.remove(article_win);

I add the window to the group with:
news_nav_group.open(article_win);

I'd assume this would work fine, but I'm receiving this error:
Value was not the value expected. (viewIsInChildren) was not (YES) in -[TiViewProxy remove:] (TiViewProxy.m:193)

Any help is much appreciated.

— asked July 1st 2010 by Sean McEmerson
  • iphone
  • navigationgroup
  • remove
  • window
1 Comment
  • I've seen similar behavior myself. I believe that in the latest snapshot in GIT the nav group object has a close(<window>) method you might want to try instead of remove(<window>). Haven't tried it myself though.

    — commented July 1st 2010 by Alan McConnell

3 Answers

  • You should be able to use .close() as the comment suggests.

    — answered July 1st 2010 by Kevin Whinnery
    permalink
    2 Comments
    • Yes I have done this just call close() as Kevin suggests.

      — commented July 1st 2010 by James Whittaker
    • Doesn't work.

      — commented November 15th 2011 by Justin Toth
  • Unfortunately using close() didn't work :(

    Thanks for the help, anyway.

    — answered July 7th 2010 by Sean McEmerson
    permalink
    0 Comments
  • Value was not the value expected. (viewIsInChildren) was not (YES) in -[TiViewProxy remove:] (TiViewProxy.m:193)

    I've seen this error many times in my app at random crashes, not necessarily while using close() or remove(). A few times in simulator, many times on device (especially 3G).

    Is it possible it has to do with old windows using up memory? Lets hope we get a solution! :)

    — answered July 8th 2010 by Marcel Neumann
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.