Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26819] iOS : UI Navigation Bar doesn't show titleImage with SplitWindow.

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionNot Our Bug
Resolution Date2019-11-11T18:57:24.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterRiduanul Islam
AssigneeVijay Singh
Created2019-02-12T00:17:04.000+0000
Updated2019-11-11T18:57:24.000+0000

Description

For App UI View, customers are having Window as child of NavigationWindow Alloy Tag , They were trying to add Header Image as title inside Navigation bar, but it got like this (Navbar_title_image.png). To achieve this, they want to use Splitwindow by placing the logo in titleImage property. But using property titleImage, the logo doesn't show up. The below attachment is the expected behavior(expected_result.png). Same result popped up after several checks with splitview, documentation link:- https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iOS.SplitWindow-property-titleImage. App.js is the below test code for this: *App.js*
var win2 = Titanium.UI.createWindow({
        backgroundColor : 'red',
        barColor : 'yellow',
        titleImage : 'logo.png'

});

var win1 = Titanium.UI.iOS.createNavigationWindow({

	window : win2

});

//SplitWidnow

var detail = Ti.UI.createWindow({
	backgroundColor : 'white',
});

var label1 = Ti.UI.createLabel({
	text : 'Detail View'
});

detail.add(label1);

var master = Ti.UI.createWindow({
	backgroundColor : 'gray',
});

var label2 = Ti.UI.createLabel({
	text : 'Master View'
});

master.add(label2);

var win3 = Ti.UI.iOS.createSplitWindow({

	detailView : detail,

	masterView : master,

	backgroundColor : 'blue',

	barColor : 'orange',

	titleImage : 'logo.png', // This Property is not setting the Title Image in Split Window?? Please suggest how to Set the title of SplitWidnow?

});

var button = Titanium.UI.createButton({

	title : 'Open Blue Window'

});

button.addEventListener('click', function() {

	win1.openWindow(win3, {

		animated : true

	});

});

win2.add(button);

var button2 = Titanium.UI.createButton({
    top: 300,
	title : 'Close Blue Window'

});

button2.addEventListener('click', function() {

	win1.closeWindow(win3, {

		animated : true
	});

	//win3.close() will also work!!

});

win3.add(button2);

win1.open(); 
var detail = Ti.UI.createWindow({
backgroundColor : 'white',
titleImage : 'logo.png'
});

Attachments

FileDateSize
expected_result.png2019-02-12T00:08:56.000+000023819
Navbar_title_image.png2019-02-12T00:08:56.000+000054414

Comments

  1. Riduanul Islam 2019-03-10

    Do we have any progress regarding this issue? Let us know if you need any information from us. Thank you.

JSON Source