{"action":"created","issue":{"url":"https://api.github.com/repos/hackiftekhar/IQKeyboardManager/issues/1228","repository_url":"https://api.github.com/repos/hackiftekhar/IQKeyboardManager","labels_url":"https://api.github.com/repos/hackiftekhar/IQKeyboardManager/issues/1228/labels{/name}","comments_url":"https://api.github.com/repos/hackiftekhar/IQKeyboardManager/issues/1228/comments","events_url":"https://api.github.com/repos/hackiftekhar/IQKeyboardManager/issues/1228/events","html_url":"https://github.com/hackiftekhar/IQKeyboardManager/issues/1228","id":289702731,"number":1228,"title":"IQKeyboardReturnKeyHandler retain cycle","user":{"login":"godexsoft","id":385326,"avatar_url":"https://avatars2.githubusercontent.com/u/385326?v=4","gravatar_id":"","url":"https://api.github.com/users/godexsoft","html_url":"https://github.com/godexsoft","followers_url":"https://api.github.com/users/godexsoft/followers","following_url":"https://api.github.com/users/godexsoft/following{/other_user}","gists_url":"https://api.github.com/users/godexsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/godexsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godexsoft/subscriptions","organizations_url":"https://api.github.com/users/godexsoft/orgs","repos_url":"https://api.github.com/users/godexsoft/repos","events_url":"https://api.github.com/users/godexsoft/events{/privacy}","received_events_url":"https://api.github.com/users/godexsoft/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-01-18T16:58:43Z","updated_at":"2018-03-14T12:32:00Z","closed_at":"2018-03-12T18:42:59Z","author_association":"NONE","body":"In swift code i have IQKeyboardReturnKeyHandler as per documentation. Just adding the field and creating an instance from (controller: self) makes a retain cycle somehow. Easiest way to check is to add deinit method with a log line. Without IQKeyboardReturnKeyHandler the log line appears, with IQKeyboardReturnKeyHandler it does not - the controller stays in memory."},"comment":{"url":"https://api.github.com/repos/hackiftekhar/IQKeyboardManager/issues/comments/373004446","html_url":"https://github.com/hackiftekhar/IQKeyboardManager/issues/1228#issuecomment-373004446","issue_url":"https://api.github.com/repos/hackiftekhar/IQKeyboardManager/issues/1228","id":373004446,"user":{"login":"godexsoft","id":385326,"avatar_url":"https://avatars2.githubusercontent.com/u/385326?v=4","gravatar_id":"","url":"https://api.github.com/users/godexsoft","html_url":"https://github.com/godexsoft","followers_url":"https://api.github.com/users/godexsoft/followers","following_url":"https://api.github.com/users/godexsoft/following{/other_user}","gists_url":"https://api.github.com/users/godexsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/godexsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godexsoft/subscriptions","organizations_url":"https://api.github.com/users/godexsoft/orgs","repos_url":"https://api.github.com/users/godexsoft/repos","events_url":"https://api.github.com/users/godexsoft/events{/privacy}","received_events_url":"https://api.github.com/users/godexsoft/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T12:32:00Z","updated_at":"2018-03-14T12:32:00Z","author_association":"NONE","body":"But how can you release it in the deinit if deinit is never executed due to retain cycle? That's exactly the problem :)"}}
{"actor":{"display_login":"godexsoft"}}