[TIMOB-2834] BarImage breaks Title text in navigation group
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-02-14T23:36:44.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.7.2, Sprint 2012-04, Release 2.0.0, Release 1.8.2 |
Components | iOS |
Labels | barimage, defect, ios, iphone, module_navgroup, parity, qe-testadded, reported-1.5.1, reported-1.6.0, title |
Reporter | eddiemonge |
Assignee | Blain Hamon |
Created | 2011-04-15T03:30:38.000+0000 |
Updated | 2012-03-04T22:20:19.000+0000 |
Description
If you have a barImage in a NavigationGroup, it deletes the title Text on child windows, only after one child window is called. The barImage works correctly on the parent and on the first child window called but not subsequent child images
Code can be found at http://pastie.org/1461234">http://pastie.org/1461234
barTop.png needs to be placed in the Resources directory
Attachments
File | Date | Size |
---|---|---|
bartop.png | 2011-04-15T03:30:38.000+0000 | 17494 |
Testing this example in 1.6.0 (http://github.com/appcelerator/titanium_mobile/commit/1ef086793961881e31b5de3e0c99a20923d0296b">1/17/11), the first label reliably opens the second window with the correct bar image. The second label opens a window, but the title and content are missing missing. From here, clicking either label will result in a missing title. As coded, this example would seem to be adding/opening windows correctly.
Some additional notes I have discovered:
If you set the barImage on the parent window when the child opens and set the child to null, then reset the child when it closes, it works right.
It almost seems like the barImage is created as a view and is then placed over the top bar view. The back button will still work even though you cant see it.
I am confirming that this bug still exist. Basically, when a navigation window is closed, the child window's barImage will be on top of the parent's navigation bar.
The example provided above shows the bug. Please refer to Helpdesk ticket http://developer.appcelerator.com/helpdesk/view/75181">75181
Open /Library/Application Support/Titanium/mobilesdk/osx/1.6.1/iphone/Classes
Find line 778 with this comment: //[barImageView removeFromSuperview];
Remove slashes comment, example:
-(void)_tabBeforeBlur { // Changed by rodrigoknascimento@gmail.com at 13 april 2011 - 10:35 (GMT -3) Brasil
}
Delete "build" folder into your project and run simulator trought Titanium to recreate it.
Have fun.
Thanks Rodrigo, that's very nice.
The code in the pastie is below (In case pastie expires the link)
Passed as expected on iPhone running iOS 4.2.8 and iOS 3.1.2 as
* also passed on iPad w/ iOS 4.3
Fix seen in SDK 1.8.0.v20110817105307
I'm using Titanium Mobile 1.8.1 building with iOS SDK 5.0 and this bug still exists. IMO it should be reopened.
Felipe, can you please provide code that reproduces your findings? The code attached to this bug does not show any issues. Thanks!
Hi Thomas, I just realize that the code is a little different from the original. This is the reproducible code:
The problem occur on the third window in the navigation group.
Yea the bug Exists. Here is the sample code.
Reopening this issue based on last 2 comments.
Felipe & Devang Thanks for providing updated sample test cases. I verified that this is indeed an issue in 1.8.1 I also tested against the latest master branch (AOTW 1.9.0.v20120213174634) from the CI build page http://builds.appcelerator.com.s3.amazonaws.com/index.html and this issue does not occur there.