{"id":18270867,"url":"https://github.com/onemightyroar/YRDropdownView","last_synced_at":"2025-04-05T01:30:54.454Z","repository":{"id":2354816,"uuid":"3317938","full_name":"onemightyroar/YRDropdownView","owner":"onemightyroar","description":"iOS view library for displaying stylish alerts, warnings, \u0026 errors","archived":false,"fork":false,"pushed_at":"2013-10-14T14:52:48.000Z","size":669,"stargazers_count":812,"open_issues_count":10,"forks_count":104,"subscribers_count":36,"default_branch":"master","last_synced_at":"2025-03-06T22:49:37.802Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://buildinternet.com/2012/02/yrdropdownview-a-polite-uialertview-alternative-for-ios/","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onemightyroar.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":"2012-01-31T19:30:03.000Z","updated_at":"2025-03-04T12:27:10.000Z","dependencies_parsed_at":"2022-09-01T08:51:23.121Z","dependency_job_id":null,"html_url":"https://github.com/onemightyroar/YRDropdownView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onemightyroar%2FYRDropdownView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onemightyroar%2FYRDropdownView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onemightyroar%2FYRDropdownView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onemightyroar%2FYRDropdownView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onemightyroar","download_url":"https://codeload.github.com/onemightyroar/YRDropdownView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276043,"owners_count":20912286,"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-11-05T11:38:55.047Z","updated_at":"2025-04-05T01:30:54.080Z","avatar_url":"https://github.com/onemightyroar.png","language":"Objective-C","readme":"## YRDropdownView\n\n![Sample](https://github.com/onemightyroar/YRDropdownView/raw/gh-pages/images/screenshot.png \"Sample\")\n\nYRDropdownView is a view library for displaying stylish alerts, warnings, and errors. Based on Tweetbot's implementation, [MKInfoPanel](https://github.com/MugunthKumar/MKInfoPanelDemo) by Mugunth Kumar, [MBProgressHUD](https://github.com/jdg/MBProgressHUD) by Matej Bukovinski and [DSActivityView](https://github.com/joycodes/DSActivityView) by David Sinclair, among other influences. Its API has been hashed out to make the code easily implemented and very versatile.\n\n### Using YRDropdownView in your project?\nBe sure to contact me and let me know, I'd love to give your app some promo love. See the Contact section below to let me know!\n## Installation\n\nTo use YRDropdownView:\n\n1. Copy over the `YRDropdownView` folder to your project folder. (Note: currently, the background is being drawn using a stretchable image, `bg-yellow.png`. Should you choose to supply your own background, you only need the `YRDropdownView.h\\.m` files)\n2. Enjoy!\n\n## Usage\n\nWherever you want to use YRDropdownView, import the header file as follows:\n\n``` objective-c\n#import \"YRDropdownView.h\"\n```\n\n### Basic\nYou can create your dropdown by calling the singleton method:\n\n``` objective-c\n[YRDropdownView showDropdownInView:self.view\n                             title:@\"Warning\"\n                            detail:@\"Danger Will Robinson. You cannot do that.\"];\n```\n\nBy default, calling the above method will only dismiss when clicked on. To dismiss, then call:\n\n``` objective-c\n[YRDropdownView hideDropdownInView:self.view];\n```\n\n### Customizing\nThere are many different ways to customize the alert by calling different singleton methods:\n\n``` objective-c\n+ (YRDropdownView *)showDropdownInView:(UIView *)view\n                                 title:(NSString *)title;\n\n+ (YRDropdownView *)showDropdownInView:(UIView *)view\n                                 title:(NSString *)title\n                                detail:(NSString *)detail;\n\n+ (YRDropdownView *)showDropdownInView:(UIView *)view\n                                 title:(NSString *)title\n                                detail:(NSString *)detail\n                              animated:(BOOL)animated;\n\n+ (YRDropdownView *)showDropdownInView:(UIView *)view\n                                 title:(NSString *)title\n                                detail:(NSString *)detail\n                                 image:(UIImage *)image\n                              animated:(BOOL)animated;\n\n+ (YRDropdownView *)showDropdownInView:(UIView *)view\n                                 title:(NSString *)title\n                                detail:(NSString *)detail\n                                 image:(UIImage *)image\n                              animated:(BOOL)animated\n                             hideAfter:(float)delay;\n+ (YRDropdownView *)showDropdownInView:(UIView *)view\n                                 title:(NSString *)title\n                                detail:(NSString *)detail\n                                 image:(UIImage *)image\n                       backgroundImage:(UIImage *)backgroundImage\n                              animated:(BOOL)animated\n                             hideAfter:(float)delay;\n\n+ (YRDropdownView *)showDropdownInView:(UIView *)view\n                                 title:(NSString *)title\n                                detail:(NSString *)detail\n                                 image:(UIImage *)image\n                       backgroundImage:(UIImage *)backgroundImage\n                       titleLabelColor:(UIColor *)titleLabelColor\n                      detailLabelColor:(UIColor *)detailLabelColor\n                              animated:(BOOL)animated\n                             hideAfter:(float)delay;\n\n+ (BOOL)hideDropdownInView:(UIView *)view;\n+ (BOOL)hideDropdownInView:(UIView *)view animated:(BOOL)animated;\n\n+ (YRDropdownView *)showDropdownInWindow:(UIWindow *)window \n                                   title:(NSString *)title;\n\n+ (YRDropdownView *)showDropdownInWindow:(UIWindow *)window \n                                   title:(NSString *)title\n                                  detail:(NSString *)detail;\n\n+ (YRDropdownView *)showDropdownInWindow:(UIWindow *)window \n                                   title:(NSString *)title\n                                  detail:(NSString *)detail\n                                animated:(BOOL)animated;\n\n+ (YRDropdownView *)showDropdownInWindow:(UIWindow *)window \n                                   title:(NSString *)title\n                                  detail:(NSString *)detail\n                                   image:(UIImage *)image\n                                animated:(BOOL)animated;\n\n+ (YRDropdownView *)showDropdownInWindow:(UIWindow *)window \n                                   title:(NSString *)title\n                                  detail:(NSString *)detail\n                                   image:(UIImage *)image\n                                animated:(BOOL)animated\n                               hideAfter:(float)delay;\n\n+ (YRDropdownView *)showDropdownInWindow:(UIWindow *)window \n                                   title:(NSString *)title\n                                  detail:(NSString *)detail\n                                   image:(UIImage *)image\n                         backgroundImage:(UIImage *)backgroundImage\n                                animated:(BOOL)animated\n                               hideAfter:(float)delay;\n\n+ (YRDropdownView *)showDropdownInWindow:(UIWindow *)window \n                                   title:(NSString *)title\n                                  detail:(NSString *)detail\n                                   image:(UIImage *)image\n                         backgroundImage:(UIImage *)backgroundImage\n                         titleLabelColor:(UIColor *)titleLabelColor\n                        detailLabelColor:(UIColor *)detailLabelColor\n                                animated:(BOOL)animated\n                               hideAfter:(float)delay;\n\n+ (BOOL)hideDropdownInWindow:(UIWindow *)window;\n+ (BOOL)hideDropdownInWindow:(UIWindow *)window animated:(BOOL)animated;\n```\n\n## Notes\n\n### Automatic Reference Counting (ARC) support\nARC support has been neglected in part for now. Your contributions are more than welcome, however. If you want to use YRDropdownView in an ARC project, just add the [add the \n``` objective-c\n-fno-objc-arc\n```\ncompiler flag](http://stackoverflow.com/questions/6646052/how-can-i-disable-arc-for-a-single-file-in-a-project) to all YRDropdownView files in your project.\n\n## Contact\n\n- http://github.com/eliperkins\n- http://twitter.com/e_perkins1\n- eli@onemightyroar.com\n\n\n## License\n\n### MIT License\n\nCopyright (c) 2012 One Mighty Roar (http://onemightyroar.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/onemightyroar/yrdropdownview/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonemightyroar%2FYRDropdownView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonemightyroar%2FYRDropdownView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonemightyroar%2FYRDropdownView/lists"}