{"action":"created","issue":{"url":"https://api.github.com/repos/kevin0571/STPopup/issues/21","labels_url":"https://api.github.com/repos/kevin0571/STPopup/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/kevin0571/STPopup/issues/21/comments","events_url":"https://api.github.com/repos/kevin0571/STPopup/issues/21/events","html_url":"https://github.com/kevin0571/STPopup/issues/21","id":115267006,"number":21,"title":"Close popup when clicking outside of the controller","user":{"login":"popei69","id":1432849,"avatar_url":"https://avatars.githubusercontent.com/u/1432849?v=3","gravatar_id":"","url":"https://api.github.com/users/popei69","html_url":"https://github.com/popei69","followers_url":"https://api.github.com/users/popei69/followers","following_url":"https://api.github.com/users/popei69/following{/other_user}","gists_url":"https://api.github.com/users/popei69/gists{/gist_id}","starred_url":"https://api.github.com/users/popei69/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/popei69/subscriptions","organizations_url":"https://api.github.com/users/popei69/orgs","repos_url":"https://api.github.com/users/popei69/repos","events_url":"https://api.github.com/users/popei69/events{/privacy}","received_events_url":"https://api.github.com/users/popei69/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-05T11:41:35Z","updated_at":"2015-11-05T11:51:17Z","closed_at":null,"body":"Hi Kevin,\r\n\r\nI would like to know if there is an easy way to make the popup close when clicking outside of the view.\r\nI saw there is already something to drag the popup down that make it close, but nothing when clicking outside. I tried couple things but it didn't work well.  \r\n\r\nDo you know if there is a way to do that? \r\n\r\nThanks,\r\nBen\r\n"},"comment":{"url":"https://api.github.com/repos/kevin0571/STPopup/issues/comments/154039641","html_url":"https://github.com/kevin0571/STPopup/issues/21#issuecomment-154039641","issue_url":"https://api.github.com/repos/kevin0571/STPopup/issues/21","id":154039641,"user":{"login":"kevin0571","id":1491282,"avatar_url":"https://avatars.githubusercontent.com/u/1491282?v=3","gravatar_id":"","url":"https://api.github.com/users/kevin0571","html_url":"https://github.com/kevin0571","followers_url":"https://api.github.com/users/kevin0571/followers","following_url":"https://api.github.com/users/kevin0571/following{/other_user}","gists_url":"https://api.github.com/users/kevin0571/gists{/gist_id}","starred_url":"https://api.github.com/users/kevin0571/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevin0571/subscriptions","organizations_url":"https://api.github.com/users/kevin0571/orgs","repos_url":"https://api.github.com/users/kevin0571/repos","events_url":"https://api.github.com/users/kevin0571/events{/privacy}","received_events_url":"https://api.github.com/users/kevin0571/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T11:51:17Z","updated_at":"2015-11-05T11:51:17Z","body":"Hi @popei69 , you can get the background view of the popupController and add a gesture:\r\n```objc\r\n```"}}