Titanium Community Questions & Answer Archive

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

Offline bug

If the phone does not connect to the internet and you create the app.js as simple as this, try to click the tabs, exit the app, click the app, (do not re launch, just click the icon again and again in the iphone simulator.)
After around 10 times, the programme will freeze, using 1.4.1 now.

tabGroup = Titanium.UI.createTabGroup();
WinA = Titanium.UI.createWindow({  
     title:'My Roster',     backgroundColor:'#fff',
 });
 TabA = Titanium.UI.createTab({  
     icon:'KS_nav_views.png',     title:'My Roster',     window:WinA
 });
 WinB = Titanium.UI.createWindow({  
     title:'Friends Roster',     backgroundColor:'#fff'
 });
 TabB = Titanium.UI.createTab({  
     icon:'KS_nav_ui.png',     title:'Friends Roster',     window:WinB
 });
  tabGroup.addTab(TabA);  
  tabGroup.addTab(TabB);
  tabGroup.open();
— asked August 26th 2010 by Lawrence Cheuk
0 Comments

2 Answers

  • By the way, I added this two line of code to the info.plist,in order to force exit for iOS4 when pressing the bottom round button:

        <key>UIApplicationExitsOnSuspend</key>
        <true/>
    
    — answered August 26th 2010 by Lawrence Cheuk
    permalink
    0 Comments
  • Problem happen in kitchen sink too.
    Titanium freeze in the splash screen when in offline mode when u go in and out the app for a few times (less than 5 times in kitchen sink),
    SDK 1.4.1

    — answered August 26th 2010 by Lawrence Cheuk
    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.