{"id":15050769,"url":"https://github.com/wyanassert/wygeneralpicker","last_synced_at":"2025-05-16T05:30:37.765Z","repository":{"id":56927116,"uuid":"132979197","full_name":"wyanassert/WYGeneralPicker","owner":"wyanassert","description":"General Picker of iOS develop. ","archived":false,"fork":false,"pushed_at":"2018-05-21T09:09:57.000Z","size":397,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T23:48:28.581Z","etag":null,"topics":["objective-c","picker"],"latest_commit_sha":null,"homepage":null,"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/wyanassert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-11T02:33:07.000Z","updated_at":"2022-03-27T07:24:12.000Z","dependencies_parsed_at":"2022-08-21T05:50:47.376Z","dependency_job_id":null,"html_url":"https://github.com/wyanassert/WYGeneralPicker","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyanassert%2FWYGeneralPicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyanassert%2FWYGeneralPicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyanassert%2FWYGeneralPicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyanassert%2FWYGeneralPicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wyanassert","download_url":"https://codeload.github.com/wyanassert/WYGeneralPicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254473723,"owners_count":22077159,"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":["objective-c","picker"],"created_at":"2024-09-24T21:29:17.732Z","updated_at":"2025-05-16T05:30:37.234Z","avatar_url":"https://github.com/wyanassert.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Version](http://img.shields.io/cocoapods/v/WYGeneralPicker.svg)](https://cocoapods.org/pods/WYGeneralPicker)\n[![License](https://img.shields.io/cocoapods/l/WYGeneralPicker.svg)](https://cocoapods.org/pods/WYGeneralPicker)\n[![Platform](https://img.shields.io/cocoapods/p/WYGeneralPicker.svg)](http://cocoadocs.org/docsets/WYGeneralPicker)\n\n## WYGeneralPicker\nSupport DatePicker, StringPicker and MultipleStringPicker.\n\nA simple replacement of [ActionSheetPicker-3.0](https://github.com/skywinder/ActionSheetPicker-3.0)\n\n* Why not use `ActionSheetPicker-3.0`?\n   see the issue [ActionSheetPicker popover selection is not working for iPad on iOS 11+](https://github.com/skywinder/ActionSheetPicker-3.0/issues/384). So I just want to replace `ActionSheetPicker-3.0` easily if the issue not fixed.\n---\n\n### How To Use\n\n1. first step\n\n `pod WYGeneralPicker`\n\n    and then\n\n `#import \"ViewController.h\"`\n\n2. present Picker using code below\n\n```\n    // DatePicker\n    [WYGeneralPicker showPickerWithTitle:@\"Select Date\" datePickerMode:UIDatePickerModeDateAndTime selectedDate:[NSDate date] minimumDate:[NSDate dateWithTimeIntervalSinceNow:-(3600*24 * 3)] maximumDate:[NSDate dateWithTimeIntervalSinceNow:(3600*24 * 3)] doneBlock:^(NSDate *date) {\n\n    } cancelBlock:^{\n\n    }];\n```\n\n```\n    // StringPicker\n    NSUInteger index = [[NSTimeZone knownTimeZoneNames] indexOfObject:[NSTimeZone localTimeZone].name];\n    [WYGeneralPicker showPickerWithTitle:@\"Time Zone\" rows:[NSTimeZone knownTimeZoneNames] initialSelection:index doneBlock:^(NSString *selectedStr) {\n\n    } cancelBlock:^{\n\n    }];\n```\n\n\n```\n    // MultipleStringPicker\n    [WYGeneralPicker showPickerWithTitle:@\"Multiple Title\" multipleRows:@[@[@\"row0\", @\"row1\", @\"row0\", @\"row1\", @\"row0\", @\"row1\"],\n                                                                          @[@\"row2\", @\"row3\", @\"row4\", @\"row2\", @\"row3\", @\"row4\"],\n                                                                          @[@\"row5\", @\"row6\", @\"row7\", @\"row8\", @\"row9\", @\"row0\"]]\n                       initialSelections:@[@(2), @(5), @(0)] doneBlock:^(NSArray\u003cNSString *\u003e *selectedStrArray) {\n\n                       } cancelBlock:^{\n\n                       }];\n```\n### Screenshots\n![DatePicker](Resource/image0.png)\n![StringPicker](Resource/image1.png)\n![MultipleStringPicker](Resource/image2.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwyanassert%2Fwygeneralpicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwyanassert%2Fwygeneralpicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwyanassert%2Fwygeneralpicker/lists"}