Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9151] iOS: Blank screen when pressing back in navigationGroup

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-05-24T12:07:29.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sRelease 2.1.0, Sprint 2012-11 API
ComponentsiOS
LabelsSupportTeam, api, regression
ReporterEduardo Gomez
AssigneeSabil Rahim
Created2012-05-16T10:05:04.000+0000
Updated2017-03-03T06:08:31.000+0000

Description

Issue

Blank screen (flickering effect) when pressing back in navGroup. Only reproducible with iOS 4.3 & 2.0.1.x

Tested on

iOS simulator 4.3 & 5

Expected behavior

Screen do not get a blank screen - as seen in 1.8.2 and 2.1.0 SDKs

Current behavior

Screen do get a blank screen - as seen in 2.0.1

Steps to reproduce

1. Throw code to an app.js 2. Click "Next Page" 3. Click "Back" 4. Notice how the window flickers / get a blank screen only in 2.0.1 with 4.3

app.js

// this sets the background color of the master UIView (when there are no windows/tab groups on it)
var rootwin = Ti.UI.createWindow({
	navBarHidden:true,
	top:'0dp',
	bottom:'0dp',
	left:'0dp',
	right:'0dp',
	orientationModes:[Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT]
});

var rootNav = Ti.UI.iPhone.createNavigationGroup({
	window:rootwin,
	orientationModes:[Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT]
});

var win1 = Ti.UI.createWindow({
	backgroundColor:'red',
	navBarHidden:true,
	top:0,
	left:0,
	right:0,
	bottom:0
});

var nextPage = Ti.UI.createButton({
	title:'Next Page',
	width:'300dp',
	height:'50dp',
	top:0,
	left:0
});
win1.add(nextPage);

var testView = Ti.UI.createView({
	backgroundColor:'gray',
	//width:Ti.UI.FILL,
	height:'300dp',
	top:'50dp',
	bottom:0,
	right:0,
	left:0
});
win1.add(testView);

nextPage.addEventListener('click', function(){
	
	var newWin = Ti.UI.createWindow({
		backgroundColor:'blue',
		navBarHidden:true,
		top:0,
		left:0,
		right:0,
		bottom:0
	});
	
	var backButton = Ti.UI.createButton({
		title:'Back',
		width:'300dp',
		height:'50dp',
		top:0,
		left:0
	});
	backButton.addEventListener('click', function(){
		nav1.close(newWin);
	});
	newWin.add(backButton);
	
	nav1.open(newWin);
});

var nav1 = Ti.UI.iPhone.createNavigationGroup({
	window:win1,
	top:0,
	left:0,
	right:0,
	bottom:0,
	visible:false
});

var wrapperwin = Ti.UI.createWindow({
	navBarHidden:true,
	top:0,
	left:0,
	right:0,
	bottom:0
});
wrapperwin.add(nav1);

rootwin.add(wrapperwin);

rootwin.open();
nav1.visible = true;

Comments

  1. Lee Morris 2017-03-03

    Closing issue due to time passed and irrelevance of the ticket.

JSON Source