Project does not run in 1.3
An Ipad project that compiles and runs just fine in 1.2 is not running in 1.3
It exits just after the splash screen with the following error:
[WARN] Value was not the value expected. (containsChild) was not (YES) in -[TiViewProxy childWillResize:] (TiViewProxy.m:965)
[ERROR] The application has crashed with an unhandled exception. Stack trace:
0 CoreFoundation 0x036e424b __raiseError + 299
1 libobjc.A.dylib 0x971c6509 objc_exception_throw + 56
2 FairyTalesIpad 0x00089316 +[TiProxy throwException:subreason:location:] + 0
3 FairyTalesIpad 0x0004cd48 -[TiViewProxy childWillResize:] + 355
4 FairyTalesIpad 0x00049d82 -[TiViewProxy animate:] + 176
5 Foundation 0x0047fe86 __NSThreadPerformPerform + 678
6 CoreFoundation 0x03673d9a CFRunLoopRunSpecific + 3402
7 CoreFoundation 0x03673048 CFRunLoopRunInMode + 88
8 GraphicsServices 0x03b5989d GSEventRunModal + 217
9 GraphicsServices 0x03b59962 GSEventRun + 115
10 UIKit 0x006f9de1 UIApplicationMain + 1134
11 FairyTalesIpad 0x000032ac main + 360
12 FairyTalesIpad 0x00002442 start + 54
2010-05-14 15:39:18.320 FairyTalesIpad[30123:207] *** Terminating app due to uncaught exception 'org.fairytalesipad.TiUIWindowProxy', reason: 'Value was not the value expected. (containsChild) was not (YES) in -[TiViewProxy childWillResize:] (TiViewProxy.m:965)'
2010-05-14 15:39:18.321 FairyTalesIpad[30123:207] Stack: (
57557579,
2535220489,
561942,
314696,
302466,
4718214,
57097626,
57094216,
62232733,
62232930,
7314913,
12972,
9282
)
[INFO] Application has exited from Simulator
thanks
5 Answers
-
i also encountered a problem with ipad on 1.3
I think it is something to do with reading the
app.jsit was reading the wrong tab to start with, so i stripped all the other tabs in my project out of app.js and it fires on the one i want it to which allows me to carry on working on it at least
it didn't error out though
turns out it was to do with the active:true; option that it was obviously ignoring whilst using 1.2
i thought you had to have at least 1 tab even if you hide it
win1.hideTabBar();
I am far from an expert but try this, obviously change the filename(url) to the same as your .js file
i wonder if it is now doing more error checking then in 1.2
tabGroup = Titanium.UI.createTabGroup(); var win1 = Titanium.UI.createWindow({ url:'your .js file', title:'menu', navBarHidden:true }); var tab1 = Titanium.UI.createTab({ icon:'images/tabs/KS_nav_views.png', title:'menu', active:true, window:win1 }); win1.hideTabBar(); tabGroup.addTab(tab1); tabGroup.setActiveTab(1); // open tab group with a transition animation tabGroup.open({ transition:Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT, fullscreen:true });
-
I don't even have a tab.
I start the application with an window. -
I am far from an expert but try this, obviously change the filename(url) to the same as your .js file
i wonder if it is now doing more error checking then in 1.2tabGroup = Titanium.UI.createTabGroup(); var win1 = Titanium.UI.createWindow({ url:'main/menu.js', title:'menu', navBarHidden:true }); var tab1 = Titanium.UI.createTab({ icon:'images/tabs/KS_nav_views.png', title:'menu', active:true, window:win1 }); win1.hideTabBar(); tabGroup.addTab(tab1); tabGroup.setActiveTab(1); // open tab group with a transition animation tabGroup.open({ transition:Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT, fullscreen:true });
-
Thanks for your examples but both examples run with a tabgroup as starting point.
My app does NOT have a tabgroup.
It starts the same way it does the new kitchensink_ipad examplevar win = Ti.UI.createWindow(); bla blah win.open();
I mention again that the app runs fine if I compile it with 1.2.0 - in fact is in appstore for review right now :)
-
ok,
let us know how the review goes
good luck