{"action":"created","issue":{"url":"https://api.github.com/repos/SnapKit/SnapKit/issues/289","repository_url":"https://api.github.com/repos/SnapKit/SnapKit","labels_url":"https://api.github.com/repos/SnapKit/SnapKit/issues/289/labels{/name}","comments_url":"https://api.github.com/repos/SnapKit/SnapKit/issues/289/comments","events_url":"https://api.github.com/repos/SnapKit/SnapKit/issues/289/events","html_url":"https://github.com/SnapKit/SnapKit/issues/289","id":175155129,"number":289,"title":"when call Constraint.deactive() Constraint.layoutConstraints element will be released","user":{"login":"kimsungwhee","id":646158,"avatar_url":"https://avatars.githubusercontent.com/u/646158?v=3","gravatar_id":"","url":"https://api.github.com/users/kimsungwhee","html_url":"https://github.com/kimsungwhee","followers_url":"https://api.github.com/users/kimsungwhee/followers","following_url":"https://api.github.com/users/kimsungwhee/following{/other_user}","gists_url":"https://api.github.com/users/kimsungwhee/gists{/gist_id}","starred_url":"https://api.github.com/users/kimsungwhee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimsungwhee/subscriptions","organizations_url":"https://api.github.com/users/kimsungwhee/orgs","repos_url":"https://api.github.com/users/kimsungwhee/repos","events_url":"https://api.github.com/users/kimsungwhee/events{/privacy}","received_events_url":"https://api.github.com/users/kimsungwhee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-06T03:51:51Z","updated_at":"2016-09-07T12:02:29Z","closed_at":"2016-09-07T12:02:28Z","body":"### New Issue Checklist\r\n\r\n* [x] I have looked at the [Documentation](http://snapkit.io/docs)\r\n* [x] I have read the [F.A.Q.](http://snapkit.io/faq)\r\n\r\n### Issue Info\r\n\r\n Info                    | Value                               |\r\n-------------------------|-------------------------------------|\r\n Platform                | ios\r\n Platform Version        | 10.0\r\n SnapKit Version         | feature/0.40.0\r\n Integration Method      | cocoapods\r\n \r\n\r\n### Issue Description\r\nAt legacy version Constraint has install() and uninstall() method,but at feature/0.40.0 above methods was deleted.  \r\nI try to use active() and deactive() to replace them,but when i use deactive() method layoutConstraint elements will be released. active() method not work for me.\r\n\r\n```\r\nself.layoutConstraints = NSHashTable<LayoutConstraint>.weakObjects()\r\n```   \r\n↓\r\n  \r\n```\r\nself.layoutConstraints = NSHashTable<LayoutConstraint>()\r\n```\r\n\r\nwork for me. but it memory leak. Constraint deinit method not called."},"comment":{"url":"https://api.github.com/repos/SnapKit/SnapKit/issues/comments/245259037","html_url":"https://github.com/SnapKit/SnapKit/issues/289#issuecomment-245259037","issue_url":"https://api.github.com/repos/SnapKit/SnapKit/issues/289","id":245259037,"user":{"login":"kimsungwhee","id":646158,"avatar_url":"https://avatars.githubusercontent.com/u/646158?v=3","gravatar_id":"","url":"https://api.github.com/users/kimsungwhee","html_url":"https://github.com/kimsungwhee","followers_url":"https://api.github.com/users/kimsungwhee/followers","following_url":"https://api.github.com/users/kimsungwhee/following{/other_user}","gists_url":"https://api.github.com/users/kimsungwhee/gists{/gist_id}","starred_url":"https://api.github.com/users/kimsungwhee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimsungwhee/subscriptions","organizations_url":"https://api.github.com/users/kimsungwhee/orgs","repos_url":"https://api.github.com/users/kimsungwhee/repos","events_url":"https://api.github.com/users/kimsungwhee/events{/privacy}","received_events_url":"https://api.github.com/users/kimsungwhee/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T12:02:28Z","updated_at":"2016-09-07T12:02:28Z","body":"@robertjpayne it works for me. Thank you very much. "}}
{"actor":{"display_login":"kimsungwhee"}}