Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10235] iOS: Make navigation controller optional in tabs

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelsapi
ReporterPedro Enrique
AssigneeUnknown
Created2012-07-30T12:45:24.000+0000
Updated2018-02-28T20:04:15.000+0000

Description

Feature request

Make the navigation controller of the tab optional. A native tab controller does not come with the navigation controller built in. We ship with it because it makes sense and it is very useful. There are occasions, tho, that the developer needs to have a window without the navigation part. For example, placing a tab group inside a split window, or vice versa. The developer can remove the tab bar by hiding it, but the navigation controller will still be there creating overhead.

Backwards compatibility

Of course, we don't want to break all the apps out there using the stands tab group component. So this should be an optional boolean in the creation of the tabs it self.

Proposed example

var tabGroup = Ti.UI.createTabGroup();
var win = Ti.UI.createWindow({
    backgroundColor: 'white'
});
var tab1 = Ti.UI.createTab({
    window: win,
    navigation: false
});
tabGroup.addTab(tab1);
tabGroup.open();

Comments

No comments

JSON Source