{ "id": "63466", "key": "TIMOB-2834", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "12096", "description": "", "name": "Sprint 2012-04", "archived": true, "released": true, "releaseDate": "2012-02-26" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-02-14T23:36:44.000+0000", "created": "2011-04-15T03:30:38.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "barimage", "defect", "ios", "iphone", "module_navgroup", "parity", "qe-testadded", "reported-1.5.1", "reported-1.6.0", "title" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-04T22:20:19.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
If you have a barImage in a NavigationGroup, it deletes the\r\ntitle Text on child windows, only after one child window is called.\r\nThe barImage works correctly on the parent and on the first child\r\nwindow called but not subsequent child images
\r\nCode can be found at http://pastie.org/1461234
\r\nbarTop.png needs to be placed in the Resources directory
Testing this example in 1.6.0 (1/17/11),\nthe first label reliably opens the second window with the correct\nbar image. The second label opens a window, but the title and\ncontent are missing missing. From here, clicking either label will\nresult in a missing title. As coded, this example would seem to be\nadding/opening windows correctly.
Some additional notes I have discovered:
\nIf you set the barImage on the parent window when the child\nopens and set the child to null, then reset the child when it\ncloses, it works right.
\nsecond.addEventListener('open', function() {
\n
\n\n\n
\n
\n\nfirst.barImage = 'barTop.png';\nsecond.barImage = null;
\n
\n\n\n\n\n
\n});\nsecond.addEventListener('close', function()\n{ second.barImage = 'barTop.png'; });\n\n
\nthird.addEventListener('open', function() {\n\n
\nfirst.barImage = 'barTop.png';\nthird.barImage = null;
\n
\n\n\n\n
\n});\nthird.addEventListener('close', function()\n{ third.barImage = 'barTop.png'; });\n
It almost seems like the barImage is created as a view and is\nthen placed over the top bar view. The back button will still work\neven though you cant see it.
I am confirming that this bug still exist. Basically, when a\nnavigation window is closed, the child window's barImage will be on\ntop of the parent's navigation bar.
\nThe example provided above shows the bug. Please refer to\nHelpdesk ticket 75181
Open /Library/Application\nSupport/Titanium/mobilesdk/osx/1.6.1/iphone/Classes
\nFind line 778 with this comment: //[barImageView\nremoveFromSuperview];
\nRemove slashes comment, example:
-(void)_tabBeforeBlur { // Changed by rodrigoknascimento@gmail.com\nat 13 april 2011 - 10:35 (GMT -3) Brasil
\n\n[barImageView removeFromSuperview];\n[super _tabBeforeBlur];
\n
\n}
\nDelete \"build\" folder into your project and run simulator\ntrought Titanium to recreate it.
\nHave fun.
Thanks Rodrigo, that's very nice.