In our app we use windows (Titanium.UI.Window) which are themed with a barImage and have a titleControl (Titanium.UI.Label) in order to style the title. The windows are organized via tabgroups where per tab window additional windows are opened with animation.
During several cycles of open -> close -> open -> close suddenly the rightNavButton disappears and appears again if the orientation of the device is changed (portrait -> landscape -> portrait).
This only happens on a real device not in simulator!
Further inverstigations revealed that this is due to the workarraound in line #321 of TiUIWindowProxy.m for iOS 5:
[
https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/TiUIWindowProxy.m#L321]
which has been created before GA of the iOS 5 SDK.
If this workarround is replaced by the correct native implementation (setBackgroundImage) the bug is gone.
You'll find attached a context diff with a proposed implementation which solved the bug.
Please consider applying the attached patch to master and branch/1.8.0.1.
Regards.
Dietrich Thanks for raising this. In order for me to escalate this ticket to the core team, it must follow the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist) and hence include a test case that runs without modification, as per the [Creating a Test Case](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase). I will close this for now. Please reopen the ticket once it is complete, and I will move it to the main project.
Closing due to inactivity. If this issue still exists, please raise a new ticket, including all the information in the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist) to ensure that we can escalate it quickly. Read [How to Submit a Bug Report](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report) if you have not read it before, and always start a ticket using the [JIRA Ticket Template](https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template). Thanks in advance