{"action":"created","issue":{"url":"https://api.github.com/repos/litt1e-p/UIViewController-PopUp/issues/1","repository_url":"https://api.github.com/repos/litt1e-p/UIViewController-PopUp","labels_url":"https://api.github.com/repos/litt1e-p/UIViewController-PopUp/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/litt1e-p/UIViewController-PopUp/issues/1/comments","events_url":"https://api.github.com/repos/litt1e-p/UIViewController-PopUp/issues/1/events","html_url":"https://github.com/litt1e-p/UIViewController-PopUp/issues/1","id":269566983,"node_id":"MDU6SXNzdWUyNjk1NjY5ODM=","number":1,"title":"how to dismiss popup Viewcontroller with a Button.","user":{"login":"jvashisht","id":26703845,"node_id":"MDQ6VXNlcjI2NzAzODQ1","avatar_url":"https://avatars3.githubusercontent.com/u/26703845?v=4","gravatar_id":"","url":"https://api.github.com/users/jvashisht","html_url":"https://github.com/jvashisht","followers_url":"https://api.github.com/users/jvashisht/followers","following_url":"https://api.github.com/users/jvashisht/following{/other_user}","gists_url":"https://api.github.com/users/jvashisht/gists{/gist_id}","starred_url":"https://api.github.com/users/jvashisht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvashisht/subscriptions","organizations_url":"https://api.github.com/users/jvashisht/orgs","repos_url":"https://api.github.com/users/jvashisht/repos","events_url":"https://api.github.com/users/jvashisht/events{/privacy}","received_events_url":"https://api.github.com/users/jvashisht/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-10-30T11:31:51Z","updated_at":"2018-10-13T15:14:45Z","closed_at":null,"author_association":"NONE","body":"I want to use this in my app but its crashing when i placed a button in popup viewcontroller to dismiss this controller. please reply ASAP. Thanks"},"comment":{"url":"https://api.github.com/repos/litt1e-p/UIViewController-PopUp/issues/comments/429549834","html_url":"https://github.com/litt1e-p/UIViewController-PopUp/issues/1#issuecomment-429549834","issue_url":"https://api.github.com/repos/litt1e-p/UIViewController-PopUp/issues/1","id":429549834,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTU0OTgzNA==","user":{"login":"hassan-ml","id":32677957,"node_id":"MDQ6VXNlcjMyNjc3OTU3","avatar_url":"https://avatars2.githubusercontent.com/u/32677957?v=4","gravatar_id":"","url":"https://api.github.com/users/hassan-ml","html_url":"https://github.com/hassan-ml","followers_url":"https://api.github.com/users/hassan-ml/followers","following_url":"https://api.github.com/users/hassan-ml/following{/other_user}","gists_url":"https://api.github.com/users/hassan-ml/gists{/gist_id}","starred_url":"https://api.github.com/users/hassan-ml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hassan-ml/subscriptions","organizations_url":"https://api.github.com/users/hassan-ml/orgs","repos_url":"https://api.github.com/users/hassan-ml/repos","events_url":"https://api.github.com/users/hassan-ml/events{/privacy}","received_events_url":"https://api.github.com/users/hassan-ml/received_events","type":"User","site_admin":false},"created_at":"2018-10-13T15:14:45Z","updated_at":"2018-10-13T15:14:45Z","author_association":"NONE","body":"Hi, I've implemented a protocol to achieve the dismiss functionality on a button click.\r\n\r\n1- Create a protocol in your 2nd View Controller\r\nprotocol VSCommentsDelegate: NSObjectProtocol {\r\n    func dismissController()\r\n}\r\n\r\n2- Implement this protocol in your 1st View Controller from where you initiated the 2nd View Controller\r\nextension VotesAndSurveyVC: VSCommentsDelegate {\r\n    func dismissController() {\r\n        dismissPopUpViewController()\r\n    }\r\n}\r\n\r\n3- And dismiss here. It will work."}}
{"actor":{"display_login":"hassan-ml"}}