{ "id": "61796", "key": "TIMOB-1164", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2012-01-04T11:05:22.000+0000", "created": "2011-04-15T02:45:36.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "buttons", "ios", "ipad", "leftnavbutton", "navbar", "rightnavbutton" ], "versions": [], "issuelinks": [ { "id": "14426", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "84455", "key": "TIMOB-6975", "fields": { "summary": "iOS: Allow toolbars in nav bar (currently always width 0)", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T22:56:21.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Right now you can only add one button to each of leftNavButton\r\nand rightNavButton, this is ok for iPhone, but for iPad there\r\nshould be possible to add multiple buttons to the navbar.

{html}", "attachment": [], "flagged": false, "summary": "ability to add multiple buttons to navbar", "creator": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "subtasks": [], "reporter": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "environment": null, "comment": { "comments": [ { "id": "124983", "author": { "name": "sj101", "key": "sj101", "displayName": "Sj101", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Can't you add a view?

{html}", "updateAuthor": { "name": "sj101", "key": "sj101", "displayName": "Sj101", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:45:37.000+0000", "updated": "2011-04-15T02:45:37.000+0000" }, { "id": "124984", "author": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "body": "{html}

Yes, but then I get just ordinary, non navbar, buttons. I want\nnavbar buttons like those in the Mail app on iPad.

{html}", "updateAuthor": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "created": "2011-04-15T02:45:37.000+0000", "updated": "2011-04-15T02:45:37.000+0000" }, { "id": "124985", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

Use a button bar

\n
\nvar bb1 = Titanium.UI.createButtonBar({\n    labels:['+', '-'],\n    backgroundColor:'#336699',\n    style:Titanium.UI.iPhone.SystemButtonStyle.BAR,\n});\n\nwin.rightNavButton = bb1;\n
{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:45:37.000+0000", "updated": "2011-04-15T02:45:37.000+0000" }, { "id": "124986", "author": { "name": "ravenlife", "key": "ravenlife", "displayName": "RavenLife", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I love you guys at appcelerator but this is not invalid

\n

yes you could use a tabbed bar if you just wanted multiple\nbuttons and didnt care what it looked like. But that is not what\nMofie was asking for, nor is it at all a suitable alternative to\nnav buttons.

\n

i believe what mofie is asking for (as am i now) is the ability\nto add multiple 'system' buttons to the NavBar locations. so that\nwe are able to replicate the look and feel of native ipad apps.

\n

for that matter, what if i wanted 2 tabbed bars in the top\nright, could i do that? no. so this ticket is valid.

\n

Ta

\n

Richie

{html}", "updateAuthor": { "name": "ravenlife", "key": "ravenlife", "displayName": "RavenLife", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:45:37.000+0000", "updated": "2011-04-15T02:45:37.000+0000" }, { "id": "124987", "author": { "name": "kaipradel", "key": "kaipradel", "displayName": "Kai Pradel", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Bump - I agree with RavenLife. I've been looking for ways to add\nmore buttons to the navBar and the solution would be to allow a\nview to be added to either side and allow the button style to be\nlike a native button.

\n

Please reconsider this and open it back up.

\n

Kai

{html}", "updateAuthor": { "name": "kaipradel", "key": "kaipradel", "displayName": "Kai Pradel", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:45:38.000+0000", "updated": "2011-04-15T02:45:38.000+0000" }, { "id": "177756", "author": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "body": "RavenLife is correct. This is not invalid. Please reopen.", "updateAuthor": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "created": "2012-01-02T05:42:41.000+0000", "updated": "2012-01-02T05:42:41.000+0000" }, { "id": "177870", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "iPhone and iPad both have the restriction that you cannot have multiple buttons in a bar. You must design your own custom view and set it as the left/right navigation button.\r\n\r\nThis bug is invalid.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-03T11:34:14.000+0000", "updated": "2012-01-03T11:34:14.000+0000" }, { "id": "177943", "author": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "body": "That is correct, but the problem is that we can't use the system button style (with glow) using Ti.UI.createButton() and adding it to a view. There are ways to do this though, and a lot of apps do it: http://osmorphis.blogspot.com/2009/05/multiple-buttons-on-navigation-bar.html\r\nBut we rely on what Titanium provides us with.\r\n\r\nFortunately in iOS 5 this is [supported natively|http://developer.apple.com/library/ios/#documentation/uikit/reference/UINavigationItem_Class/Reference/UINavigationItem.html]:\r\nSee: leftBarButtonItems and rightBarButtonItems\r\n\r\nEither reopen this, or ask me to create a new issue.\r\n\r\n", "updateAuthor": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "created": "2012-01-04T04:09:53.000+0000", "updated": "2012-01-04T04:09:53.000+0000" }, { "id": "177971", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We can't add iOS 5-specific features to the product yet, as that breaks backwards compatibility with iOS 4 devices, which still have a large market share. Taking advantage of iOS 5 features like this would require writing a lot of additional code to work with the appropriate devices.\r\n\r\nWhen we begin adding support for setting minimum app versions, it is more likely that iOS 5-specific features will be added.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-04T10:18:09.000+0000", "updated": "2012-01-04T10:18:09.000+0000" }, { "id": "177985", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This has been deprecated in favor of TIMOB-6975, which allows adding toolbars (which should also support system styled buttons) to the nav bar.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-04T11:05:22.000+0000", "updated": "2012-01-04T11:05:22.000+0000" }, { "id": "178429", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Brief update to this ticket; you may be able to use {{Ti.UI.Window.toolbar}} to style appropriately.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-06T17:45:47.000+0000", "updated": "2012-01-06T17:45:58.000+0000" }, { "id": "261720", "author": { "name": "pdaigle", "key": "pdaigle", "displayName": "Patrick Daigle", "active": true, "timeZone": "America/Montreal" }, "body": "I know this is an old ticket, but right now I'm looking for a way to achieve this. I tried the suggested workaround (using a toolbar) but it doesn't work unless the toolbar is added to a view and has a fixed width in pixel ({{Ti.UI.SIZE}} doesn't work) which is not very convenient. \r\n\r\nI can provide a complete test case for this if needed, but I think a better solution would be (as Sindre suggested) to use {{leftBarButtonItems}} and {{rightBarButtonItems}} properties. This would no longer breaks backward compatibility with iOS 4 because the latest release (3.1.1.GA) raised the minimum iOS SDK to 5.0.\r\n\r\nI think implementing {{leftBarButtonItems}} and {{rightBarButtonItems}} in Titanium would be nice and also much more elegant than the trick I mentioned above.", "updateAuthor": { "name": "pdaigle", "key": "pdaigle", "displayName": "Patrick Daigle", "active": true, "timeZone": "America/Montreal" }, "created": "2013-07-13T21:00:42.000+0000", "updated": "2013-07-13T21:00:42.000+0000" }, { "id": "285724", "author": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "body": "To [~pdaigle] and everyone looking for the ability to add more than one item in the right nav area, we're pleased to announce this small yet useful module: https://github.com/smclab/TiNavItems\r\n\r\nInstead of an hack (toolbars and similar) that break horribly in iOS 7 we're using directly the iOS 5+ feature.", "updateAuthor": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-12-24T10:09:57.000+0000", "updated": "2013-12-24T10:09:57.000+0000" }, { "id": "415178", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Won't Fix\".", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T22:56:21.000+0000", "updated": "2017-03-22T22:56:21.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }