Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28361] iOS: largeTitleDisplayMode always is not respected on load when using a ListView in a Window

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2021-05-18T18:18:32.000+0000
Affected Version/sRelease 9.2.0
Fix Version/sRelease 10.0.0, Release 9.3.3
ComponentsiOS
LabelsListView, TableView, iOS
ReporterEwan Harris
AssigneeVijay Singh
Created2021-02-22T11:04:50.000+0000
Updated2021-05-18T18:18:36.000+0000

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

Comments

  1. Vijay Singh 2021-02-22

    PR - https://github.com/appcelerator/titanium_mobile/pull/12490
  2. Hans Knöchel 2021-02-23

    Related to TIMOB-28131
  3. Samir Mohammed 2021-02-23

    FR Passed, waiting on Jenkins build.
  4. Christopher Williams 2021-02-24

    merged to master for 10.0.0 target, backport merged to 9_3_X branch as well.

JSON Source