Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4820] Pre-filed iOS 5 bug: Standard window close animation within tabgroup not working

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-10-24T10:45:43.000+0000
Affected Version/sRelease 1.7.2, Release 1.8.0
Fix Version/sSprint 2011-42
ComponentsiOS
Labelsn/a
ReporterAlan Leard
AssigneeBlain Hamon
Created2011-07-28T11:31:20.000+0000
Updated2011-10-24T14:26:07.000+0000

Description

When closing a window in a TabBar-based app, the animation is not behaving properly. The NavBar animates just as you'd expect, but the actual window view just disappears, showing the previous window. Works fine in simulator and using other versions of iOS. Tested on device running iOS 5 beta 3 and beta 4 with the code sample below.
Titanium.UI.setBackgroundColor('#000'); 
var tabGroup = Titanium.UI.createTabGroup(); 
var win1 = Titanium.UI.createWindow({
    title:'Tab 1', 
    backgroundColor:'#fff' 
}); 
var tab1 = Titanium.UI.createTab({
    icon:'KS_nav_views.png', 
    title:'Tab 1', 
    window:win1 
}); 
var label1 = Titanium.UI.createLabel({ 
    color:'#999', 
    text:'I am Window 1', 
    font:{fontSize:20,fontFamily:'Helvetica Neue'}, 
    textAlign:'center', 
    width:'auto' 
}); 
win1.add(label1); 
label1.addEventListener('click', function () { 
    var w = Ti.UI.createWindow({ 
          backgroundColor: 'red' 
    }); 
    tab1.open(w); 
}); 
tabGroup.addTab(tab1); 
tabGroup.open();

Comments

  1. Eric Merriman 2011-10-24

    Verified not occurring with iPhone 4s (iOS 5.0) with SDK 1.7.4.v20111021181815.
  2. Eric Merriman 2011-10-24

    Verified fixed with iPad2 (4.3.5) iPhone 4 ATT (5.0). Closing.
  3. Brian Knorr 2011-10-24

    This is still broken...please re-open. Did you try it on the actual device?
  4. Brian Knorr 2011-10-24

    Just to clarify...it's still broken in Ti 1.7.4 on iOS5.

JSON Source