{"action":"created","issue":{"url":"https://api.github.com/repos/dzenbot/DZNEmptyDataSet/issues/33","labels_url":"https://api.github.com/repos/dzenbot/DZNEmptyDataSet/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/dzenbot/DZNEmptyDataSet/issues/33/comments","events_url":"https://api.github.com/repos/dzenbot/DZNEmptyDataSet/issues/33/events","html_url":"https://github.com/dzenbot/DZNEmptyDataSet/issues/33","id":41444043,"number":33,"title":"Allowing touches to views underneath the empty view.","user":{"login":"brandons","id":67223,"avatar_url":"https://avatars.githubusercontent.com/u/67223?v=3","gravatar_id":"","url":"https://api.github.com/users/brandons","html_url":"https://github.com/brandons","followers_url":"https://api.github.com/users/brandons/followers","following_url":"https://api.github.com/users/brandons/following{/other_user}","gists_url":"https://api.github.com/users/brandons/gists{/gist_id}","starred_url":"https://api.github.com/users/brandons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandons/subscriptions","organizations_url":"https://api.github.com/users/brandons/orgs","repos_url":"https://api.github.com/users/brandons/repos","events_url":"https://api.github.com/users/brandons/events{/privacy}","received_events_url":"https://api.github.com/users/brandons/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2014-08-28T21:14:17Z","updated_at":"2015-07-02T23:44:03Z","closed_at":null,"body":"Since userInteractionEnabled is set to YES on emptyDataSetView, all touches to views underneath are blocked.\r\n\r\nThis is probably fine for the majority of cases, however I have a header in my UICollectionView using a supplementaryView. Even though the main content is empty, there are still actions that need to be performed from the header. Touches to the supplementary view are currently blocked making it unusable. \r\n\r\nIt would be great to have an option to enable the behaviour I described above. This is actually what I expected -emptyDataSetShouldAllowTouch: to do, but that is not the case."},"comment":{"url":"https://api.github.com/repos/dzenbot/DZNEmptyDataSet/issues/comments/118195134","html_url":"https://github.com/dzenbot/DZNEmptyDataSet/issues/33#issuecomment-118195134","issue_url":"https://api.github.com/repos/dzenbot/DZNEmptyDataSet/issues/33","id":118195134,"user":{"login":"mokagio","id":1218433,"avatar_url":"https://avatars.githubusercontent.com/u/1218433?v=3","gravatar_id":"","url":"https://api.github.com/users/mokagio","html_url":"https://github.com/mokagio","followers_url":"https://api.github.com/users/mokagio/followers","following_url":"https://api.github.com/users/mokagio/following{/other_user}","gists_url":"https://api.github.com/users/mokagio/gists{/gist_id}","starred_url":"https://api.github.com/users/mokagio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mokagio/subscriptions","organizations_url":"https://api.github.com/users/mokagio/orgs","repos_url":"https://api.github.com/users/mokagio/repos","events_url":"https://api.github.com/users/mokagio/events{/privacy}","received_events_url":"https://api.github.com/users/mokagio/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T23:44:03Z","updated_at":"2015-07-02T23:44:03Z","body":"@Mazyod I apologise. I commented being frustrated by my code not working properly. I should have waited an do it with a clear mind.\r\n\r\nHere's a gif to ask for forgiveness\r\n\r\n![gif](http://ak-hdl.buzzfed.com/static/2014-07/18/8/enhanced/webdr04/anigif_enhanced-buzz-21129-1405685676-5.gif)\r\n\r\nAnyway... I was using a custom view, set with the data source method, taking up the full size of the scroll view, a `UITableView` in my case. The custom view had a `UIButton`.\r\n\r\nI put breakpoints here and there, and on interesting finding was this, in @brandons `hitTestMethod`, despite me touching on the custom view button the returned `hitView` was always its superview, which is the library's empty view.\r\n\r\n```objc\r\n- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event{\r\n   UIView *hitView = [super hitTest:point withEvent:event];\r\n    if ([hitView isEqual:_button]) {\r\n        return hitView;\r\n    }\r\n    return nil;\r\n}\r\n```\r\n\r\nI'll see if I can put together an example later.\r\n\r\nCheers"}}