{"action":"created","issue":{"url":"https://api.github.com/repos/blackmirror-media/BMPickerModal/issues/9","repository_url":"https://api.github.com/repos/blackmirror-media/BMPickerModal","labels_url":"https://api.github.com/repos/blackmirror-media/BMPickerModal/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/blackmirror-media/BMPickerModal/issues/9/comments","events_url":"https://api.github.com/repos/blackmirror-media/BMPickerModal/issues/9/events","html_url":"https://github.com/blackmirror-media/BMPickerModal/issues/9","id":266925778,"number":9,"title":"UIButton are not responding to events","user":{"login":"wasappi","id":533351,"avatar_url":"https://avatars3.githubusercontent.com/u/533351?v=4","gravatar_id":"","url":"https://api.github.com/users/wasappi","html_url":"https://github.com/wasappi","followers_url":"https://api.github.com/users/wasappi/followers","following_url":"https://api.github.com/users/wasappi/following{/other_user}","gists_url":"https://api.github.com/users/wasappi/gists{/gist_id}","starred_url":"https://api.github.com/users/wasappi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wasappi/subscriptions","organizations_url":"https://api.github.com/users/wasappi/orgs","repos_url":"https://api.github.com/users/wasappi/repos","events_url":"https://api.github.com/users/wasappi/events{/privacy}","received_events_url":"https://api.github.com/users/wasappi/received_events","type":"User","site_admin":false},"labels":[{"id":201290531,"url":"https://api.github.com/repos/blackmirror-media/BMPickerModal/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"eriadam","id":2480660,"avatar_url":"https://avatars3.githubusercontent.com/u/2480660?v=4","gravatar_id":"","url":"https://api.github.com/users/eriadam","html_url":"https://github.com/eriadam","followers_url":"https://api.github.com/users/eriadam/followers","following_url":"https://api.github.com/users/eriadam/following{/other_user}","gists_url":"https://api.github.com/users/eriadam/gists{/gist_id}","starred_url":"https://api.github.com/users/eriadam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eriadam/subscriptions","organizations_url":"https://api.github.com/users/eriadam/orgs","repos_url":"https://api.github.com/users/eriadam/repos","events_url":"https://api.github.com/users/eriadam/events{/privacy}","received_events_url":"https://api.github.com/users/eriadam/received_events","type":"User","site_admin":false},"assignees":[{"login":"eriadam","id":2480660,"avatar_url":"https://avatars3.githubusercontent.com/u/2480660?v=4","gravatar_id":"","url":"https://api.github.com/users/eriadam","html_url":"https://github.com/eriadam","followers_url":"https://api.github.com/users/eriadam/followers","following_url":"https://api.github.com/users/eriadam/following{/other_user}","gists_url":"https://api.github.com/users/eriadam/gists{/gist_id}","starred_url":"https://api.github.com/users/eriadam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eriadam/subscriptions","organizations_url":"https://api.github.com/users/eriadam/orgs","repos_url":"https://api.github.com/users/eriadam/repos","events_url":"https://api.github.com/users/eriadam/events{/privacy}","received_events_url":"https://api.github.com/users/eriadam/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-10-19T17:31:29Z","updated_at":"2017-10-19T20:01:45Z","closed_at":null,"author_association":"NONE","body":"Hi, \r\nSave and cancel buttons selectors are not triggered on iPhone. (iOS 11) \r\nAny idea on what could be the issue ? Something strange with the responder chain when added on uiwindow ? "},"comment":{"url":"https://api.github.com/repos/blackmirror-media/BMPickerModal/issues/comments/338020901","html_url":"https://github.com/blackmirror-media/BMPickerModal/issues/9#issuecomment-338020901","issue_url":"https://api.github.com/repos/blackmirror-media/BMPickerModal/issues/9","id":338020901,"user":{"login":"eriadam","id":2480660,"avatar_url":"https://avatars3.githubusercontent.com/u/2480660?v=4","gravatar_id":"","url":"https://api.github.com/users/eriadam","html_url":"https://github.com/eriadam","followers_url":"https://api.github.com/users/eriadam/followers","following_url":"https://api.github.com/users/eriadam/following{/other_user}","gists_url":"https://api.github.com/users/eriadam/gists{/gist_id}","starred_url":"https://api.github.com/users/eriadam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eriadam/subscriptions","organizations_url":"https://api.github.com/users/eriadam/orgs","repos_url":"https://api.github.com/users/eriadam/repos","events_url":"https://api.github.com/users/eriadam/events{/privacy}","received_events_url":"https://api.github.com/users/eriadam/received_events","type":"User","site_admin":false},"created_at":"2017-10-19T20:01:45Z","updated_at":"2017-10-19T20:01:45Z","author_association":"OWNER","body":"Hello, Thanks for the feedback. The trick is to create a stored property for your control. Then then the button actions should work fine. I updated the docs and added an example project to the project as well.\r\n\r\n\r\n```swift\r\nimport UIKit\r\nimport BMPickerModal\r\n\r\nclass ViewController: UIViewController {\r\n\r\n  var datePickerModal: BMPickerModal?\r\n\r\n  override func viewDidAppear(_ animated: Bool) {\r\n    super.viewDidAppear(animated)\r\n\r\n    self.datePickerModal = BMPickerModal()\r\n    self.datePickerModal?.mode = .datePicker\r\n\r\n    self.datePickerModal?.show { selectedDate in\r\n      print(selectedDate)\r\n      // Do something with the date here\r\n    }\r\n  }\r\n}\r\n\r\n```\r\n"}}
{"actor":{"display_login":"eriadam"}}