{ "id": "61867", "key": "TIMOB-1235", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-06-08T12:34:12.000+0000", "created": "2011-04-15T02:47:21.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api" ], "versions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "issuelinks": [ { "id": "17723", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "86755", "key": "TIMOB-7724", "fields": { "summary": "iOS: the ability to get the cords for the top of the keyboard when it changes", "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": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T21:29:15.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}

I need a simple way to know when the keyboard will show or hide\r\nso that I can move my layout around.

\r\n

Proposed usage:

\r\n
\r\n\r\nTi.App.addEventListener('keyboard-will-show', function(e){\r\n    if (e.source == myTextView) doSomething();\r\n    else if (e.source == myOtherTextView) doSomethingElse();\r\n});\r\n\r\nTi.App.addEventListener('keyboard-will-hide', function(e){\r\n    if (e.source == myTextView) doSomething();\r\n    else if (e.source == myOtherTextView) doSomethingElse();\r\n});\r\n
\r\n

i can haz?

{html}", "attachment": [], "flagged": false, "summary": "iOS: Missing KeyboardWillShow / KeyboardWillHide events", "creator": { "name": "thomasaylott", "key": "thomasaylott", "displayName": "Thomas Aylott", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125141", "author": { "name": "thomasaylott", "key": "thomasaylott", "displayName": "Thomas Aylott", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}
\n[[NSNotificationCenter defaultCenter] addObserver:self\n    selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil];\n[[NSNotificationCenter defaultCenter] addObserver:self\n    selector:@selector(keyboardWillHide:) name:UIKeyboardWillHideNotification object:nil];\n
{html}", "updateAuthor": { "name": "thomasaylott", "key": "thomasaylott", "displayName": "Thomas Aylott", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:47:22.000+0000", "updated": "2011-04-15T02:47:22.000+0000" }, { "id": "125142", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Curiously, still doesn't exist even after the keyboard\nupdates.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:47:22.000+0000", "updated": "2011-04-15T02:47:22.000+0000" }, { "id": "197900", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Taken care of by [TIMOB-7724]: Ti.App.addEventListener('keyboardFrameChanged, ...);", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2012-06-08T12:28:17.000+0000", "updated": "2012-06-08T12:28:17.000+0000" }, { "id": "197903", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of TIMOB-7724.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-08T12:34:12.000+0000", "updated": "2012-06-08T12:34:12.000+0000" }, { "id": "410584", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T21:29:15.000+0000", "updated": "2017-03-09T21:29:15.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }