[TIMOB-26819] iOS : UI Navigation Bar doesn't show titleImage with SplitWindow.
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | None |
| Status | Closed |
| Resolution | Not Our Bug |
| Resolution Date | 2019-11-11T18:57:24.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | n/a |
| Reporter | Riduanul Islam |
| Assignee | Vijay Singh |
| Created | 2019-02-12T00:17:04.000+0000 |
| Updated | 2019-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
| File | Date | Size |
|---|---|---|
| expected_result.png | 2019-02-12T00:08:56.000+0000 | 23819 |
| Navbar_title_image.png | 2019-02-12T00:08:56.000+0000 | 54414 |
Do we have any progress regarding this issue? Let us know if you need any information from us. Thank you.