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

iOS: largeTitleDisplayMode always is not respected on load when using a ListView in a Window

    Details

    • Story Points:
      3
    • Sprint:
      2021 Sprint 4, 2021 Sprint 10

      Description

      Description

      Note: This only occurs for iOS 14, it works as expected on iOS 13.7

      When using largeTitleDisplayMode: Ti.UI.iOS.LARGE_TITLE_DISPLAY_MODE_ALWAYS on a Window that contains a ListView or TableView then when the Window opens it.

      The code below demonstrates this when using a NavigationWindow but the issue can also be seen when using a TabGroup

      const window = Ti.UI.createWindow({
      	backgroundColor: '#fff',
      	title: 'Titanium rocks!',
      	titleAttributes: {
      		color: 'red'
      	},
      	largeTitleEnabled: true,
      	largeTitleDisplayMode: Ti.UI.iOS.LARGE_TITLE_DISPLAY_MODE_ALWAYS
      }); 
      const nav = Ti.UI.createNavigationWindow({ window });
      // window.add(Ti.UI.createListView({
      // 	sections: [
      // 		Ti.UI.createListSection({ headerTitle: 'Fruits', items: [ { properties: { title: 'Apple' } }, { properties: { title: 'Banana' } } ] })
      // 	]
      // }));
      window.add(Ti.UI.createTableView({
      	data: [ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Carrots'}, {title: 'Potatoes'} ]
      }));
      nav.open();
      

      Steps to reproduce

      1. Add the above code to an existing app.js
      2. Build to an iOS 14 device/sim

      Actual

      When the app loads the text in the navigation bar will not be in large title mode

      Expected

      When the app loads, the text in the navigation bar should be in large title mode

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vijaysingh Vijay Singh
                Reporter:
                eharris Ewan Harris
                Reviewer:
                Christopher Williams
                Tester:
                Samir Mohammed
              • Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration