{"id":17225360,"url":"https://github.com/yeahdongcn/rspoppickersheet","last_synced_at":"2025-04-14T00:52:10.849Z","repository":{"id":17626225,"uuid":"20430467","full_name":"yeahdongcn/RSPOPPickerSheet","owner":"yeahdongcn","description":"Fullscreen pop-able and block-able picker sheet.","archived":false,"fork":false,"pushed_at":"2014-06-08T13:24:36.000Z","size":412,"stargazers_count":20,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T14:19:15.598Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yeahdongcn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-03T05:12:59.000Z","updated_at":"2019-08-13T15:43:01.000Z","dependencies_parsed_at":"2022-09-24T17:44:38.130Z","dependency_job_id":null,"html_url":"https://github.com/yeahdongcn/RSPOPPickerSheet","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeahdongcn%2FRSPOPPickerSheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeahdongcn%2FRSPOPPickerSheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeahdongcn%2FRSPOPPickerSheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeahdongcn%2FRSPOPPickerSheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yeahdongcn","download_url":"https://codeload.github.com/yeahdongcn/RSPOPPickerSheet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248804781,"owners_count":21164131,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T04:13:21.340Z","updated_at":"2025-04-14T00:52:10.807Z","avatar_url":"https://github.com/yeahdongcn.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"RSPOPPickerSheet\n================\n\n[![Total views](https://sourcegraph.com/api/repos/github.com/yeahdongcn/RSPOPPickerSheet/counters/views.png)](https://sourcegraph.com/github.com/yeahdongcn/RSPOPPickerSheet)\n[![Views in the last 24 hours](https://sourcegraph.com/api/repos/github.com/yeahdongcn/RSPOPPickerSheet/counters/views-24h.png)](https://sourcegraph.com/github.com/yeahdongcn/RSPOPPickerSheet)\n\nFullscreen pop-able and block-able picker sheet.\n\n#### Control gif video (not clear enough, better try the sample :))\n![screenshot](https://raw.githubusercontent.com/yeahdongcn/RSPOPPickerSheet/master/video.gif)\n\n##PROBLEM\n\nIn one of my working projects, I need to show a picker view in a UITableViewController's tableView, so I add a picker view as a subview of the tableView. The result is this picker view will be scrolled together with the tableView.\n\n##HOW TO SOLVE THIS\n\nWe need a control which can show like modal and block actions, so here comes `UIActionSheet`. And we have to customize the `UIActionSheet` to show the picker view.\n\nAs we all know, the `UIActionSheet` can't be dragged into a empty xib, but `UIView` can. so we start with an `UIView` and do the layout and then change the class name of the `UIView` to `UIActionSheet`. That works fine for some `UIView` based controls. \n\n##MAKE IT POP-ABLE\n\nUse [pop](https://github.com/facebook/pop).\n\nAdd [pop](https://github.com/facebook/pop) to almost everything, button pressing and clicking, background alpha changing and picker frame changing, make it more lively.\n\n##MAKE IT BLOCK-ABLE\n\nProvide a new `showInView` and `DO NOT` forget to call `[super showInView:view]`\n\n    - (void)showInView:(UIView *)view doneEvent:(ActionEvent)doneEvent cancelEvent:(ActionEvent)cancelEvent\n    {\n        self.cancel.click = ^(id sender) {\n            if (cancelEvent) {\n                cancelEvent(self);\n            }\n            [self dismiss];\n        };\n        self.done.click = ^(id sender) {\n            if (doneEvent) {\n                doneEvent(self);\n            }\n            [self dismiss];\n        };\n        [super showInView:view];\n    }\n\n\n##License\n\n    The MIT License (MIT)\n\n    Copyright (c) 2012-2014 P.D.Q.\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy of\n    this software and associated documentation files (the \"Software\"), to deal in\n    the Software without restriction, including without limitation the rights to\n    use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n    the Software, and to permit persons to whom the Software is furnished to do so,\n    subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n    FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n    COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n    IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n    CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeahdongcn%2Frspoppickersheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyeahdongcn%2Frspoppickersheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeahdongcn%2Frspoppickersheet/lists"}