Titanium Community Questions & Answer Archive

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

[WARN] Invalid type passed to function. expected: NSNull, was: TiViewProxy in -[TiViewProxy add:] (TiViewProxy.m:164)

i got this error in sdk3.x too, however when running in sdk4 it now crashed the app

could appcelerator stuff please give me some hint, as to why this could happen, or how i can avoid this when coding?

— asked June 8th 2010 by Christian Sigl
  • invalid
  • iphone
  • sdk4
  • tiviewproxy

1 Answer

  • for os4 did you try this?

    And for your error, try adding the code below in your app.js :
    var view = Titanium.UI.createView();

    — answered June 8th 2010 by Stephane Pelamourgues
    • funny, while it crashes the simulator, it works without any problems on the device itself (which has 4.0 firmware installed), adding the line above didn't help and i already patched the mobile sdk

      — commented June 8th 2010 by Christian Sigl
    • Hi Christian,

      Could you please tell me how to solve this problem ? I am facing this problem when i am doind orientation from protrait to landscape.

      — commented September 10th 2012 by anil banepalli etta
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.