{ "id": "103170", "key": "TIMOB-11397", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14168", "description": "2012 Sprint 22 API", "name": "2012 Sprint 22 API", "archived": true, "released": true, "releaseDate": "2012-11-05" }, { "id": "14274", "description": "2012 Sprint 22", "name": "2012 Sprint 22", "archived": true, "released": true, "releaseDate": "2012-11-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-10-30T18:10:16.000+0000", "created": "2012-10-11T22:02:31.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "api", "qe-testadded" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:13.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": "Popover left/right nav button can't be set to null. We can't remove them. It gives a warning message = \"-[NSNull barButtonItem]: unrecognized selector sent to instance 0x3650678\"\r\nh4. Repo Case\r\n1. Run the below code in the app.js\r\n2. Click on the \"Show Popover\" button.\r\n3. Now check the Titanium Studio console you've a warning exception.\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow();\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttitle : 'Show popover',\r\n\twidth : 250,\r\n\theight : 50,\r\n\ttop : 30,\r\n\tright : 5\r\n});\r\nvar popover = Ti.UI.iPad.createPopover({\r\n\twidth : 300,\r\n\theight : 250,\r\n\trightNavButton : null,\r\n\ttitle : 'I\\'m a Popover',\r\n\tbackgroundColor : 'red',\r\n\tbarColor : 'green'\r\n});\r\nView = Titanium.UI.createView({\r\n\twidth : Ti.UI.FILL,\r\n\theight : Ti.UI.FILL,\r\n\tbackgroundColor : '#900',\r\n\ttop : 0\r\n});\r\nbutton.addEventListener('click', function(e) {\r\n\tpopover.show({\r\n\t\tview : button,\r\n\t\tanimated : true\r\n\t});\r\n});\r\npopover.add(View);\r\nwin.add(button);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Popover left/right nav button can't be set to null", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS6 iPad Simulator\r\nTi SDK 2.1.3.GA", "comment": { "comments": [ { "id": "224855", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/3320", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-24T23:20:32.000+0000", "updated": "2012-10-24T23:20:32.000+0000" }, { "id": "235040", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "No exception shown.\r\nVerified on:\r\nStudio: 3.0.1.201212181159\r\nSDK: 3.1.0.v20130114171802\r\niOS Device: iPad Simulator (v6.0), iPad Mini (v6.0)\r\nXCode: 4.5.2", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-21T01:27:37.000+0000", "updated": "2013-01-21T01:27:37.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }