Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3041] iOS Titanium.UI.Window with titleControl does not reliably display rightNavButton on iPhone 4 device (not in simulator!)

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2011-12-22T06:39:57.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsbarimage, disappears, ios5, rightnavbutton, titlecontrol, window
ReporterDietrich Streifert
AssigneePaul Dowsett
Created2011-12-21T23:39:16.000+0000
Updated2016-03-08T07:48:04.000+0000

Description

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.

Attachments

FileDateSize
TiUIWindowProxy.m-barimage-ios5.diff2011-12-21T23:39:16.000+00002214

Comments

  1. Paul Dowsett 2011-12-22

    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.
  2. Paul Dowsett 2012-02-17

    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

JSON Source