{"action":"created","issue":{"url":"https://api.github.com/repos/ryanmaxwell/UIAlertView-Blocks/issues/23","repository_url":"https://api.github.com/repos/ryanmaxwell/UIAlertView-Blocks","labels_url":"https://api.github.com/repos/ryanmaxwell/UIAlertView-Blocks/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/ryanmaxwell/UIAlertView-Blocks/issues/23/comments","events_url":"https://api.github.com/repos/ryanmaxwell/UIAlertView-Blocks/issues/23/events","html_url":"https://github.com/ryanmaxwell/UIAlertView-Blocks/issues/23","id":182702814,"number":23,"title":"Default `tapBlock` no longer works with iOS 10, issue not detected by Xcode","user":{"login":"bengotow","id":1037212,"avatar_url":"https://avatars.githubusercontent.com/u/1037212?v=3","gravatar_id":"","url":"https://api.github.com/users/bengotow","html_url":"https://github.com/bengotow","followers_url":"https://api.github.com/users/bengotow/followers","following_url":"https://api.github.com/users/bengotow/following{/other_user}","gists_url":"https://api.github.com/users/bengotow/gists{/gist_id}","starred_url":"https://api.github.com/users/bengotow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bengotow/subscriptions","organizations_url":"https://api.github.com/users/bengotow/orgs","repos_url":"https://api.github.com/users/bengotow/repos","events_url":"https://api.github.com/users/bengotow/events{/privacy}","received_events_url":"https://api.github.com/users/bengotow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-13T06:02:40Z","updated_at":"2016-10-13T20:29:03Z","closed_at":null,"body":"When you use the standard UIAlertView+Blocks API to provide a `tapBlock`, it is called when `- alertView:clickedButtonAtIndex:` is fired. This API was deprecated in iOS 9, and choosing iOS 10 as a Base SDK causes it to never be executed, meaning that your tapBlock is never run.\r\n\r\nThis issue isn't picked up by Xcode during compilation because the `UIAlertView (Blocks)` category isn't explicitly declared as a `UIAlertViewDelegate`. (I'm not sure this is possible, though.) Unfortunately this means I shipped an app update this month with a handful of unreachable `tapBlocks`.\r\n\r\nThe quickest solution is to pass NULL as the tapBlock when instantiating, and then separately set the `setDidDismissBlock:`, which does still fire in iOS 10."},"comment":{"url":"https://api.github.com/repos/ryanmaxwell/UIAlertView-Blocks/issues/comments/253629330","html_url":"https://github.com/ryanmaxwell/UIAlertView-Blocks/issues/23#issuecomment-253629330","issue_url":"https://api.github.com/repos/ryanmaxwell/UIAlertView-Blocks/issues/23","id":253629330,"user":{"login":"ryanmaxwell","id":718440,"avatar_url":"https://avatars.githubusercontent.com/u/718440?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanmaxwell","html_url":"https://github.com/ryanmaxwell","followers_url":"https://api.github.com/users/ryanmaxwell/followers","following_url":"https://api.github.com/users/ryanmaxwell/following{/other_user}","gists_url":"https://api.github.com/users/ryanmaxwell/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanmaxwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanmaxwell/subscriptions","organizations_url":"https://api.github.com/users/ryanmaxwell/orgs","repos_url":"https://api.github.com/users/ryanmaxwell/repos","events_url":"https://api.github.com/users/ryanmaxwell/events{/privacy}","received_events_url":"https://api.github.com/users/ryanmaxwell/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T20:29:03Z","updated_at":"2016-10-13T20:29:03Z","body":"Thanks for letting me know, i'll try and look into it asap and apologies for the inconvenience caused. I've migrated my code to UIAlertController so hadn't came across this"}}
{"actor":{"display_login":"ryanmaxwell"}}