Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2324] iOS: barImage on iPhone disappears when showing modal window

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-11-05T14:40:47.000+0000
Affected Version/sRelease 1.7.0, Release 1.6.2
Fix Version/sSprint 2011-29, Release 1.8.0
ComponentsiOS
Labelsn/a
ReporterCarmen Wick
AssigneeBlain Hamon
Created2011-04-15T03:16:43.000+0000
Updated2011-12-16T13:58:51.000+0000

Description

Problem

Whenever I have the 'barImage' property set on a window, and then show a modal window on top of that, the bar image on the original window disappears as the modal window is animating. However, the image is restored upon closing the modal window.

Sample Code

Drop the following in to an app.js, and click the button. A modal window will pop up, then close itself after one second. Watch the nav bar, which will have KS_nav_ui.png set as its barImage (make sure this image is available). It will flicker as you click the button.
var windowProperties = {
    backgroundColor: '#fff',
    barImage: 'KS_nav_ui.png'
};
var tabGroup = Ti.UI.createTabGroup();
var win = Ti.UI.createWindow(windowProperties);
var openModal = Ti.UI.createButton({
    title: 'Watch the barImage, and click me',
    width: 250, height: 40, top: 20
});
openModal.addEventListener('click', function() {
    var modal = Ti.UI.createWindow(windowProperties);
    modal.open({ modal: true });
    setTimeout(function() {
        modal.close();
    }, 1000);
});
win.add(openModal);
tabGroup.addTab(Ti.UI.createTab({
    icon: 'KS_nav_views.png',
    window: win
}));
tabGroup.open();

Comments

  1. Carmen Wick 2011-04-15

    Could be related to http://appc.me/lh/m/1091" title="Ticket #1091">#1091.

  2. justin 2011-04-15

    Just to add to this, the same thing happens for me too, but also kills the barimage and the left nav button.

  3. Dawson Toth 2011-04-27

    I've also seen this on a number of projects.
  4. Dawson Toth 2011-06-02

    We have a couple customers (1 pro, 1 indie) interested in this fix now.

    Associated Helpdesk Ticket

    http://appc.me/c/APP-893451
  5. Vikramjeet Singh 2011-08-29

    Tested On: Mac OSX Lion TiMob: 1.8.0v20110819142548 TiStud: 1.0.4.201108101535 Devices: iPhone4 version 4.2.10 iPad2 version 4.3.5 iPod 3
  6. Don Thorp 2011-11-05

    Standardizing summary and labels.

JSON Source