Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-17160

iOS: titleid/textid can not be changed after window is opened

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:
    • Environment:

      Ti SDK: 3.2.3.GA, iOS Simulator 7.1

      Description

      The property titleid/textid can not reset if window was opened.

      app.js

      var win1 = Titanium.UI.createWindow({
          backgroundColor: 'red',
          titleid: L("title")
      });
       
      var win2 = Titanium.UI.iOS.createNavigationWindow({
         window: win1
      });
       
      var button = Titanium.UI.createButton({
          title: 'change the title'
      });
       
      button.addEventListener('click', function(){
          win1.titleid = L("new_title", "not found");
      });
       
      win1.add(button);
       
      win2.open();
      

      i18n (strings.xml)

      <?xml version="1.0" encoding="UTF-8"?>
      <resources>
              <string name="title">Title</string>
      	<string name="new_title">New Title</string>
      </resources>
      

      Also happened in Ti.UI.Label.textid.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sko Matej
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-18851
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration